projects
/
jSite2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
work on rescanning and displaying
[jSite2.git]
/
src
/
net
/
pterodactylus
/
jsite
/
core
/
Node.java
diff --git
a/src/net/pterodactylus/jsite/core/Node.java
b/src/net/pterodactylus/jsite/core/Node.java
index
b7359ca
..
183a916
100644
(file)
--- a/
src/net/pterodactylus/jsite/core/Node.java
+++ b/
src/net/pterodactylus/jsite/core/Node.java
@@
-22,14
+22,12
@@
package net.pterodactylus.jsite.core;
import java.beans.PropertyChangeListener;
import net.pterodactylus.util.beans.AbstractBean;
import java.beans.PropertyChangeListener;
import net.pterodactylus.util.beans.AbstractBean;
-import net.pterodactylus.util.beans.Comparer;
/**
* Container for a Freenet node. A Node is capable of notifying
* {@link PropertyChangeListener}s if any of the contained properties change.
*
* @author David ‘Bombe’ Roden <bombe@freenetproject.org>
/**
* Container for a Freenet node. A Node is capable of notifying
* {@link PropertyChangeListener}s if any of the contained properties change.
*
* @author David ‘Bombe’ Roden <bombe@freenetproject.org>
- * @version $Id$
*/
public class Node extends AbstractBean {
*/
public class Node extends AbstractBean {
@@
-73,9
+71,7
@@
public class Node extends AbstractBean {
public void setName(String name) {
String oldName = this.name;
this.name = name;
public void setName(String name) {
String oldName = this.name;
this.name = name;
- if (!Comparer.equal(oldName, name)) {
- firePropertyChange(PROPERTY_NAME, oldName, name);
- }
+ fireIfPropertyChanged(PROPERTY_NAME, oldName, name);
}
/**
}
/**
@@
-96,9
+92,7
@@
public class Node extends AbstractBean {
public void setHostname(String hostname) {
String oldHostname = this.hostname;
this.hostname = hostname;
public void setHostname(String hostname) {
String oldHostname = this.hostname;
this.hostname = hostname;
- if (!Comparer.equal(oldHostname, hostname)) {
- firePropertyChange(PROPERTY_HOSTNAME, oldHostname, hostname);
- }
+ fireIfPropertyChanged(PROPERTY_HOSTNAME, oldHostname, hostname);
}
/**
}
/**
@@
-119,9
+113,7
@@
public class Node extends AbstractBean {
public void setPort(int port) {
int oldPort = this.port;
this.port = port;
public void setPort(int port) {
int oldPort = this.port;
this.port = port;
- if (oldPort != port) {
- firePropertyChange(PROPERTY_PORT, oldPort, port);
- }
+ fireIfPropertyChanged(PROPERTY_PORT, oldPort, port);
}
/**
}
/**