Skip to content
Permalink
Browse files

spotbugs

  • Loading branch information...
pabender committed Aug 1, 2019
1 parent 2ea28f1 commit 4a039fbd01dfb602bcd6bf522f96859d414c0678
Showing with 11 additions and 11 deletions.
  1. +11 −11 java/src/jmri/implementation/DccConsist.java
@@ -389,7 +389,7 @@ public String getRosterId(DccLocoAddress address) {
* Update the value in the roster entry for CV19 for the specified
* address
*
* @param addresss is the Locomotive address we are updating.
* @param address is the Locomotive address we are updating.
*/
protected void setRosterEntryCVValue(DccLocoAddress address){
updateRosterCV(address,getLocoDirection(address),this.consistAddress.getNumber());
@@ -398,7 +398,7 @@ protected void setRosterEntryCVValue(DccLocoAddress address){
/**
* Set the value in the roster entry's value for for CV19 to 0
*
* @param addresss is the Locomotive address we are updating.
* @param address is the Locomotive address we are updating.
*/
protected void resetRosterEntryCVValue(DccLocoAddress address){
updateRosterCV(address,getLocoDirection(address),0);
@@ -408,8 +408,8 @@ protected void resetRosterEntryCVValue(DccLocoAddress address){
* If allowed by the preferences, Update the CV19 value in the
* specified address's roster entry, if the roster entry is known.
*
* @param addresss is the Locomotive address we are updating.
* @param direction, the direction to set.
* @param address is the Locomotive address we are updating.
* @param direction the direction to set.
* @param value the numeric value of the consist address.
*/
protected void updateRosterCV(DccLocoAddress address,Boolean direction,int value){
@@ -495,17 +495,17 @@ protected void loadDecoderFile(DecoderFile df, RosterEntry re,VariableTableModel
}
// load variables from decoder tree
df.getProductID();
df.loadVariableModel(decoderRoot.getChild("decoder"), variableModel);
if(decoderRoot!=null) {
df.loadVariableModel(decoderRoot.getChild("decoder"), variableModel);

// load reset from decoder tree
//df.loadResetModel(decoderRoot.getChild("decoder"), resetModel);
// load reset from decoder tree
//df.loadResetModel(decoderRoot.getChild("decoder"), resetModel);

// load function names
re.loadFunctions(decoderRoot.getChild("decoder").getChild("family").getChild("functionlabels"));
// load function names
re.loadFunctions(decoderRoot.getChild("decoder").getChild("family").getChild("functionlabels"));
}
}



/*
* Add a Listener for consist events
* @param Listener is a consistListener object

0 comments on commit 4a039fb

Please sign in to comment.
You can’t perform that action at this time.