| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 121 | 3 | 2 | 0.997 | class_body_declarations[16] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 121 | 50 | plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/StatusInfo.java |
| 2 | 121 | 59 | plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/util/JUnitStatus.java |
| 3 | 121 | 52 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/StatusInfo.java |
| ||||
/**
* Returns if the status' severity is OK.
*/
public boolean isOK() {
return fSeverity == IStatus.OK;
}
/**
* Returns if the status' severity is WARNING.
*/
public boolean isWarning() {
return fSeverity == IStatus.WARNING;
}
/**
* Returns if the status' severity is INFO.
*/
public boolean isInfo() {
return fSeverity == IStatus.INFO;
}
/**
* Returns if the status' severity is ERROR.
*/
public boolean isError() {
return fSeverity == IStatus.ERROR;
}
/**
* @see IStatus#getMessage
*/
public String getMessage() {
return fStatusMessage;
}
/**
* Sets the status to ERROR.
* @param The error message (can be empty, but not null)
*/
public void setError(String errorMessage) {
Assert.isNotNull(errorMessage);
fStatusMessage = errorMessage;
fSeverity = IStatus.ERROR;
}
/**
* Sets the status to WARNING.
* @param The warning message (can be empty, but not null)
*/
public void setWarning(String warningMessage) {
Assert.isNotNull(warningMessage);
fStatusMessage = warningMessage;
fSeverity = IStatus.WARNING;
}
/**
* Sets the status to INFO.
* @param The info message (can be empty, but not null)
*/
public void setInfo(String infoMessage) {
Assert.isNotNull(infoMessage);
fStatusMessage = infoMessage;
fSeverity = IStatus.INFO;
}
/**
* Sets the status to OK.
*/
public void setOK() {
fStatusMessage = null;
fSeverity = IStatus.OK;
}
/*
* @see IStatus#matches(int)
*/
public boolean matches(int severityMask) {
return (fSeverity& severityMask) != 0;
}
/**
* Returns always <code>false</code>.
* @see IStatus#isMultiStatus()
*/
public boolean isMultiStatus() {
return false;
}
/*
* @see IStatus#getSeverity()
*/
public int getSeverity() {
return fSeverity;
}
/*
* @see IStatus#getPlugin()
*/
public String getPlugin() {
return JavaUI.ID_PLUGIN;
}
/**
* Returns always <code>null</code>.
* @see IStatus#getException()
*/
public Throwable getException() {
return null;
}
/**
* Returns always the error severity.
* @see IStatus#getCode()
*/
public int getCode() {
return fSeverity;
}
/**
* Returns always <code>null</code>.
* @see IStatus#getChildren()
*/
public IStatus[] getChildren() {
return new IStatus[0];
}
|
| ||||
/**
* Returns if the status' severity is OK.
*/
public boolean isOK() {
return fSeverity == IStatus.OK;
}
/**
* Returns if the status' severity is WARNING.
*/
public boolean isWarning() {
return fSeverity == IStatus.WARNING;
}
/**
* Returns if the status' severity is INFO.
*/
public boolean isInfo() {
return fSeverity == IStatus.INFO;
}
/**
* Returns if the status' severity is ERROR.
*/
public boolean isError() {
return fSeverity == IStatus.ERROR;
}
/**
* @see IStatus#getMessage()
*/
public String getMessage() {
return fStatusMessage;
}
/**
* Sets the status to ERROR.
* @param errorMessage the error message (can be empty, but not null)
*/
public void setError(String errorMessage) {
Assert.isNotNull(errorMessage);
fStatusMessage = errorMessage;
fSeverity = IStatus.ERROR;
}
/**
* Sets the status to WARNING.
* @param warningMessage the warning message (can be empty, but not null)
*/
public void setWarning(String warningMessage) {
Assert.isNotNull(warningMessage);
fStatusMessage = warningMessage;
fSeverity = IStatus.WARNING;
}
/**
* Sets the status to INFO.
* @param infoMessage the info message (can be empty, but not null)
*/
public void setInfo(String infoMessage) {
Assert.isNotNull(infoMessage);
fStatusMessage = infoMessage;
fSeverity = IStatus.INFO;
}
/**
* Sets the status to OK.
*/
public void setOK() {
fStatusMessage = null;
fSeverity = IStatus.OK;
}
/*
* @see IStatus#matches(int)
*/
public boolean matches(int severityMask) {
return (fSeverity& severityMask) != 0;
}
/**
* Returns always <code>false</code>.
* @see IStatus#isMultiStatus()
*/
public boolean isMultiStatus() {
return false;
}
/*
* @see IStatus#getSeverity()
*/
public int getSeverity() {
return fSeverity;
}
/*
* @see IStatus#getPlugin()
*/
public String getPlugin() {
return JUnitPlugin.PLUGIN_ID;
}
/**
* Returns always <code>null</code>.
* @see IStatus#getException()
*/
public Throwable getException() {
return null;
}
/**
* Returns always the error severity.
* @see IStatus#getCode()
*/
public int getCode() {
return fSeverity;
}
/**
* Returns always <code>null</code>.
* @see IStatus#getChildren()
*/
public IStatus[] getChildren() {
return new IStatus[0];
}
|
| ||||
/**
* Returns if the status' severity is OK.
*/
public boolean isOK() {
return fSeverity == IStatus.OK;
}
/**
* Returns if the status' severity is WARNING.
*/
public boolean isWarning() {
return fSeverity == IStatus.WARNING;
}
/**
* Returns if the status' severity is INFO.
*/
public boolean isInfo() {
return fSeverity == IStatus.INFO;
}
/**
* Returns if the status' severity is ERROR.
*/
public boolean isError() {
return fSeverity == IStatus.ERROR;
}
/**
* @see IStatus#getMessage
*/
public String getMessage() {
return fStatusMessage;
}
/**
* Sets the status to ERROR.
* @param errorMessage The error message (can be empty, but not null)
*/
public void setError(String errorMessage) {
Assert.isNotNull(errorMessage);
fStatusMessage = errorMessage;
fSeverity = IStatus.ERROR;
}
/**
* Sets the status to WARNING.
* @param warningMessage The warning message (can be empty, but not null)
*/
public void setWarning(String warningMessage) {
Assert.isNotNull(warningMessage);
fStatusMessage = warningMessage;
fSeverity = IStatus.WARNING;
}
/**
* Sets the status to INFO.
* @param infoMessage The info message (can be empty, but not null)
*/
public void setInfo(String infoMessage) {
Assert.isNotNull(infoMessage);
fStatusMessage = infoMessage;
fSeverity = IStatus.INFO;
}
/**
* Sets the status to OK.
*/
public void setOK() {
fStatusMessage = null;
fSeverity = IStatus.OK;
}
/*
* @see IStatus#matches(int)
*/
public boolean matches(int severityMask) {
return (fSeverity& severityMask) != 0;
}
/**
* Returns always <code>false</code>.
* @see IStatus#isMultiStatus()
*/
public boolean isMultiStatus() {
return false;
}
/*
* @see IStatus#getSeverity()
*/
public int getSeverity() {
return fSeverity;
}
/*
* @see IStatus#getPlugin()
*/
public String getPlugin() {
return JavaUI.ID_PLUGIN;
}
/**
* Returns always <code>null</code>.
* @see IStatus#getException()
*/
public Throwable getException() {
return null;
}
/**
* Returns always the error severity.
* @see IStatus#getCode()
*/
public int getCode() {
return fSeverity;
}
/**
* Returns always an empty array.
* @see IStatus#getChildren()
*/
public IStatus[] getChildren() {
return new IStatus[0];
}
|
| |||
/**
* Returns if the status' severity is OK.
*/
public boolean isOK() {
return fSeverity == IStatus.OK;
}
/**
* Returns if the status' severity is WARNING.
*/
public boolean isWarning() {
return fSeverity == IStatus.WARNING;
}
/**
* Returns if the status' severity is INFO.
*/
public boolean isInfo() {
return fSeverity == IStatus.INFO;
}
/**
* Returns if the status' severity is ERROR.
*/
public boolean isError() {
return fSeverity == IStatus.ERROR;
}
/**
* @see IStatus#getMessage
*/
/**
* @see IStatus#getMessage()
*/
public String getMessage() {
return fStatusMessage;
}
/**
* Sets the status to ERROR.
* @param The error message (can be empty, but not null)
*/
/**
* Sets the status to ERROR.
* @param errorMessage the error message (can be empty, but not null)
*/
/**
* Sets the status to ERROR.
* @param errorMessage The error message (can be empty, but not null)
*/
public void setError(String errorMessage) {
Assert.isNotNull(errorMessage);
fStatusMessage = errorMessage;
fSeverity = IStatus.ERROR;
}
/**
* Sets the status to WARNING.
* @param The warning message (can be empty, but not null)
*/
/**
* Sets the status to WARNING.
* @param warningMessage the warning message (can be empty, but not null)
*/
/**
* Sets the status to WARNING.
* @param warningMessage The warning message (can be empty, but not null)
*/
public void setWarning(String warningMessage) {
Assert.isNotNull(warningMessage);
fStatusMessage = warningMessage;
fSeverity = IStatus.WARNING;
}
/**
* Sets the status to INFO.
* @param The info message (can be empty, but not null)
*/
/**
* Sets the status to INFO.
* @param infoMessage the info message (can be empty, but not null)
*/
/**
* Sets the status to INFO.
* @param infoMessage The info message (can be empty, but not null)
*/
public void setInfo(String infoMessage) {
Assert.isNotNull(infoMessage);
fStatusMessage = infoMessage;
fSeverity = IStatus.INFO;
}
/**
* Sets the status to OK.
*/
public void setOK() {
fStatusMessage = null;
fSeverity = IStatus.OK;
}
/*
* @see IStatus#matches(int)
*/
public boolean matches(int severityMask) {
return (fSeverity&severityMask) != 0;
}
/**
* Returns always <code>false</code>.
* @see IStatus#isMultiStatus()
*/
public boolean isMultiStatus() {
return false;
}
/*
* @see IStatus#getSeverity()
*/
public int getSeverity() {
return fSeverity;
}
/*
* @see IStatus#getPlugin()
*/
public String getPlugin() {
return [[#variable51667240]]. [[#variable516670e0]];
}
/**
* Returns always <code>null</code>.
* @see IStatus#getException()
*/
public Throwable getException() {
return null;
}
/**
* Returns always the error severity.
* @see IStatus#getCode()
*/
public int getCode() {
return fSeverity;
}
/**
* Returns always <code>null</code>.
* @see IStatus#getChildren()
*/
/**
* Returns always an empty array.
* @see IStatus#getChildren()
*/
public IStatus[] getChildren() {
return new IStatus[0];
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#51667240]] | JavaUI |
| 1 | 2 | [[#51667240]] | JUnitPlugin |
| 1 | 3 | [[#51667240]] | JavaUI |
| 2 | 1 | [[#516670e0]] | ID_PLUGIN |
| 2 | 2 | [[#516670e0]] | PLUGIN_ID |
| 2 | 3 | [[#516670e0]] | ID_PLUGIN |