File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -236,7 +236,7 @@ public class Message implements Cloneable {
236236 if (sections [section ] == null )
237237 return false ;
238238 for (int i = 0 ; i < sections [section ].size (); i ++) {
239- Record r = ( Record ) sections [section ].get (i );
239+ Record r = sections [section ].get (i );
240240 if (r .getType () == type && name .equals (r .getName ()))
241241 return true ;
242242 }
@@ -418,7 +418,7 @@ public class Message implements Cloneable {
418418 Record lastrec = null ;
419419
420420 for (int i = 0 ; i < n ; i ++) {
421- Record rec = ( Record ) sections [section ].get (i );
421+ Record rec = sections [section ].get (i );
422422 if (section == Section .ADDITIONAL && rec instanceof OPTRecord ) {
423423 continue ;
424424 }
Original file line number Diff line number Diff line change @@ -286,7 +286,7 @@ else if (type == Type.NS)
286286 @ SuppressWarnings ("unchecked" )
287287 List <RRset > list = (List <RRset >) types ;
288288 for (int i = 0 ; i < list .size (); i ++) {
289- RRset set = ( RRset ) list .get (i );
289+ RRset set = list .get (i );
290290 if (set .getType () == rtype ) {
291291 list .set (i , rrset );
292292 return ;
Original file line number Diff line number Diff line change @@ -49,8 +49,8 @@ public class update {
4949 String line ;
5050 do {
5151 InputStream is ;
52- is = ( InputStream ) istreams .get (0 );
53- br = ( BufferedReader ) inputs .get (0 );
52+ is = istreams .get (0 );
53+ br = inputs .get (0 );
5454
5555 if (is == System .in )
5656 System .out .print ("> " );
Original file line number Diff line number Diff line change @@ -309,7 +309,7 @@ void test_valid_nonIP() throws IOException
309309 List <Element > l = ar .getElements ();
310310 assertEquals (1 , l .size ());
311311
312- Element el = ( Element ) l .get (0 );
312+ Element el = l .get (0 );
313313 assertEquals (3 , el .family );
314314 assertTrue (el .negative );
315315 assertEquals (130 , el .prefixLength );
You can’t perform that action at this time.
0 commit comments