"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "zxing.appspot.com/src/main/java/com/google/zxing/web/generator/client/WifiGenerator.java" between
zxing-zxing-3.4.1.tar.gz and zxing-zxing-3.5.0.tar.gz

About: ZXing ("zebra crossing") is a multi-format 1D/2D barcode image processing library implemented in Java, with ports to other languages. Info: Project is in maintenance mode (no active development).

WifiGenerator.java  (zxing-zxing-3.4.1):WifiGenerator.java  (zxing-zxing-3.5.0)
skipping to change at line 110 skipping to change at line 110
private String getSsidField() throws GeneratorException { private String getSsidField() throws GeneratorException {
String input = ssid.getText(); String input = ssid.getText();
if (input.isEmpty()) { if (input.isEmpty()) {
throw new GeneratorException("SSID must be at least 1 character."); throw new GeneratorException("SSID must be at least 1 character.");
} }
String parsed = parseTextField("SSID", ssid); String parsed = parseTextField("SSID", ssid);
return quoteHex(parsed); // Android needs hex-like SSIDs quoted or will be r ead as hex return quoteHex(parsed); // Android needs hex-like SSIDs quoted or will be r ead as hex
} }
private String getPasswordField() throws GeneratorException { private String getPasswordField() throws GeneratorException {
return parseTextField("Password", password); return parseTextField("Password", password);
} }
private String getNetworkTypeField() { private String getNetworkTypeField() {
return networkType.getValue(networkType.getSelectedIndex()); return networkType.getValue(networkType.getSelectedIndex());
} }
private boolean getHiddenField() { private boolean getHiddenField() {
Boolean value = hidden.getValue(); Boolean value = hidden.getValue();
return value != null && value; return value != null && value;
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)