Java NetworkTable: perform string comparion correctly.

This commit is contained in:
Peter Johnson
2015-09-27 01:19:34 -07:00
parent 424bf51a7b
commit 3e8afc14b0

View File

@@ -95,7 +95,7 @@ public class NetworkTable implements ITable, IRemote {
* mode
*/
public synchronized static void setIPAddress(final String address) {
if (ipAddress == address)
if (ipAddress.equals(address))
return;
checkInit();
ipAddress = address;
@@ -118,7 +118,7 @@ public class NetworkTable implements ITable, IRemote {
* automatic loading and saving of persistent values
*/
public synchronized static void setPersistentFilename(final String filename) {
if (persistentFilename == filename)
if (persistentFilename.equals(filename))
return;
checkInit();
persistentFilename = filename;