< prev index next >

src/java.base/unix/classes/sun/net/sdp/SdpProvider.java

Print this page

        

*** 196,206 **** private static List<Rule> loadRulesFromFile(String file) throws IOException { Scanner scanner = new Scanner(new File(file)); try { ! List<Rule> result = new ArrayList<Rule>(); while (scanner.hasNextLine()) { String line = scanner.nextLine().trim(); // skip blank lines and comments if (line.length() == 0 || line.charAt(0) == '#') --- 196,206 ---- private static List<Rule> loadRulesFromFile(String file) throws IOException { Scanner scanner = new Scanner(new File(file)); try { ! List<Rule> result = new ArrayList<>(); while (scanner.hasNextLine()) { String line = scanner.nextLine().trim(); // skip blank lines and comments if (line.length() == 0 || line.charAt(0) == '#')
< prev index next >