CPD Results
The following document contains the results of PMD's CPD
4.1.
Duplications
File |
Line |
com\gridsystems\config\tools\console\ConstantField.java |
62
|
com\gridsystems\config\tools\console\SelectionField.java |
144
|
}
/**
* {@inheritDoc}
*/
public String getKeyMapping() {
return getString(this.linePattern + ".keyMap");
}
/**
* {@inheritDoc}
*/
public String[] getContents() {
String[] contents = new String[1];
// Constructs the actual line pattern
StringBuffer pattern = new StringBuffer();
String key = getKeyMapping();
if (key != null) {
pattern.append(" ").append(key).append(". ");
}
pattern.append(getString(linePattern));
String s = getStringValue();
contents[0] = MessageFormat.format(pattern.toString(), new Object[] { s });
return contents;
}
/**
* Gets this field value.
*
* @return The value
*/
public Object getValue() {
return value;
}
/**
* Sets the value of this field.
*
* @param value The new value
*/
public void setValue(Object value) {
|
File |
Line |
com\gridsystems\config\tools\console\SelectionField.java |
151
|
com\gridsystems\config\tools\console\ValueField.java |
111
|
}
/**
* {@inheritDoc}
*/
public String[] getContents() {
String[] contents = new String[1];
// Constructs the actual line pattern
StringBuffer pattern = new StringBuffer();
String key = getKeyMapping();
if (key != null) {
pattern.append(" ").append(key).append(". ");
}
pattern.append(getString(linePattern));
String s = getStringValue();
contents[0] = MessageFormat.format(pattern.toString(), new Object[] { s });
return contents;
}
/**
* Gets this field value.
*
* @return The value
*/
public Object getValue() {
return value;
}
/**
* Sets the value of this field.
*
* @param value The new value
*/
public void setValue(Object value) {
this.value = value;
}
|
File |
Line |
com\gridsystems\config\tools\console\ConstantField.java |
69
|
com\gridsystems\config\tools\console\ValueField.java |
111
|
}
/**
* {@inheritDoc}
*/
public String[] getContents() {
String[] contents = new String[1];
// Constructs the actual line pattern
StringBuffer pattern = new StringBuffer();
String key = getKeyMapping();
if (key != null) {
pattern.append(" ").append(key).append(". ");
}
pattern.append(getString(linePattern));
String s = getStringValue();
contents[0] = MessageFormat.format(pattern.toString(), new Object[] { s });
return contents;
}
/**
* Gets this field value.
*
* @return The value
*/
public Object getValue() {
return value;
}
/**
* Sets the value of this field.
*
* @param value The new value
*/
public void setValue(Object value) {
|