Skip to content

Commit

Permalink
Cleaned up a few compiler warnings: unused var and improper access to…
Browse files Browse the repository at this point in the history
… a static member.
  • Loading branch information
larsbutler committed May 9, 2012
1 parent c183655 commit 98652ac
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions java/org/opensha/sha/imr/attenRelImpl/CY_2008_AttenRel.java
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,6 @@ public class CY_2008_AttenRel extends AttenuationRelationship implements
depthTop;
private double distRupMinusDistX_OverRup, aftershock, f_meas, f_hw;
private String stdDevType;
private boolean parameterChange;
private double depthTo1pt0kmPerSec; // defined this way to support null
// values
private double lnYref;
Expand Down Expand Up @@ -460,7 +459,6 @@ else if (im.getName().equalsIgnoreCase(PGA_Param.NAME))
else
iper = 23; // PGV

parameterChange = true;
intensityMeasureChanged = false;

}
Expand Down Expand Up @@ -963,11 +961,10 @@ public void parameterChange(ParameterChangeEvent e) {

String pName = e.getParameterName();
Object val = e.getNewValue();
parameterChange = true;
lnYref_is_not_fresh = true; // this could be placed below, only where
// really needed.

if (pName.equals(magParam.NAME)) {
if (pName.equals(MagParam.NAME)) {
mag = ((Double) val).doubleValue();
} else if (pName.equals(FaultTypeParam.NAME)) {
String fltType = (String) fltTypeParam.getValue();
Expand Down

0 comments on commit 98652ac

Please sign in to comment.