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
9435995
..
183a916
100644
(file)
--- a/
src/net/pterodactylus/jsite/core/Node.java
+++ b/
src/net/pterodactylus/jsite/core/Node.java
@@
-28,7
+28,6
@@
import net.pterodactylus.util.beans.AbstractBean;
* {@link PropertyChangeListener}s if any of the contained properties change.
*
* @author David ‘Bombe’ Roden <bombe@freenetproject.org>
* {@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 {
@@
-72,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 (!equal(oldName, name)) {
- firePropertyChange(PROPERTY_NAME, oldName, name);
- }
+ fireIfPropertyChanged(PROPERTY_NAME, oldName, name);
}
/**
}
/**
@@
-95,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 (!equal(oldHostname, hostname)) {
- firePropertyChange(PROPERTY_HOSTNAME, oldHostname, hostname);
- }
+ fireIfPropertyChanged(PROPERTY_HOSTNAME, oldHostname, hostname);
}
/**
}
/**
@@
-118,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);
}
/**
}
/**