import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
+import java.util.Objects;
import java.util.logging.Logger;
+import org.apache.commons.lang3.builder.ToStringBuilder;
import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.jdt.annotation.Nullable;
import org.eclipse.tracecompass.common.core.log.TraceCompassLog;
import org.eclipse.tracecompass.common.core.process.ProcessUtils;
import org.eclipse.tracecompass.tmf.core.event.lookup.TmfCallsite;
-import com.google.common.base.Objects;
import com.google.common.cache.CacheBuilder;
import com.google.common.cache.CacheLoader;
import com.google.common.cache.LoadingCache;
@Override
public int hashCode() {
- return Objects.hashCode(fFilePath, fBuildId, fOffset);
+ return Objects.hash(fFilePath, fBuildId, fOffset);
}
@Override
return false;
}
FileOffset other = (FileOffset) obj;
- return Objects.equal(fFilePath, other.fFilePath) &&
- Objects.equal(fBuildId, other.fBuildId) &&
- Objects.equal(fOffset, other.fOffset);
+ return Objects.equals(fFilePath, other.fFilePath) &&
+ Objects.equals(fBuildId, other.fBuildId) &&
+ Objects.equals(fOffset, other.fOffset);
}
@Override
public String toString() {
- return Objects.toStringHelper(this)
- .add("fFilePath", fFilePath) //$NON-NLS-1$
- .add("fBuildId", fBuildId) //$NON-NLS-1$
- .add("fOffset", String.format("0x%h", fOffset)) //$NON-NLS-1$ //$NON-NLS-2$
+ return new ToStringBuilder(this)
+ .append("fFilePath", fFilePath) //$NON-NLS-1$
+ .append("fBuildId", fBuildId) //$NON-NLS-1$
+ .append("fOffset", String.format("0x%h", fOffset)) //$NON-NLS-1$ //$NON-NLS-2$
.toString();
}
}
@Override
public String toString() {
- return Objects.toStringHelper(this)
- .add("fSourceFileName", fSourceFileName) //$NON-NLS-1$
- .add("fSourceLineNumber", fSourceLineNumber) //$NON-NLS-1$
- .add("fFunctionName", fFunctionName) //$NON-NLS-1$
+ return new ToStringBuilder(this)
+ .append("fSourceFileName", fSourceFileName) //$NON-NLS-1$
+ .append("fSourceLineNumber", fSourceLineNumber) //$NON-NLS-1$
+ .append("fFunctionName", fFunctionName) //$NON-NLS-1$
.toString();
}
}
import java.util.Objects;
+import org.apache.commons.lang3.builder.ToStringBuilder;
import org.eclipse.jdt.annotation.Nullable;
/**
@Override
public String toString() {
- return com.google.common.base.Objects.toStringHelper(this)
- .add("path", fFilePath) //$NON-NLS-1$
- .add("build_id", fBuildId) //$NON-NLS-1$
- .add("debug_link", fDebugLink) //$NON-NLS-1$
- .add("is_pic", fIsPic) //$NON-NLS-1$
+ return new ToStringBuilder(this)
+ .append("path", fFilePath) //$NON-NLS-1$
+ .append("build_id", fBuildId) //$NON-NLS-1$
+ .append("debug_link", fDebugLink) //$NON-NLS-1$
+ .append("is_pic", fIsPic) //$NON-NLS-1$
.toString();
}
package org.eclipse.tracecompass.statesystem.core.interval;
+import org.apache.commons.lang3.builder.ToStringBuilder;
import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.tracecompass.statesystem.core.statevalue.ITmfStateValue;
-import com.google.common.base.Objects;
-
/**
* The StateInterval represents the "state" a particular attribute was in, at a
* given time. It is the main object being returned from queries to the state
@Override
public String toString() {
/* Only used for debugging */
- return Objects.toStringHelper(this)
- .add("start", start) //$NON-NLS-1$
- .add("end", end) //$NON-NLS-1$
- .add("key", attribute) //$NON-NLS-1$
- .add("value", sv.toString()) //$NON-NLS-1$
+ return new ToStringBuilder(this)
+ .append("start", start) //$NON-NLS-1$
+ .append("end", end) //$NON-NLS-1$
+ .append("key", attribute) //$NON-NLS-1$
+ .append("value", sv.toString()) //$NON-NLS-1$
.toString();
}