summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorDmitry Kozlov2012-04-05 09:07:38 (EDT)
committer Roland Grunberg2012-04-12 17:01:32 (EDT)
commit8ad7ad7b06fb13fd35f6d7dc4fa31d8ac884711a (patch)
treecdbb3eb7d733d12c59fef795e8ccf14a2cce5e2f
parent4b18be09cc3b90a39cbd41c28b94a6113c59405e (diff)
downloadorg.eclipse.linuxtools-8ad7ad7b06fb13fd35f6d7dc4fa31d8ac884711a.zip
org.eclipse.linuxtools-8ad7ad7b06fb13fd35f6d7dc4fa31d8ac884711a.tar.gz
org.eclipse.linuxtools-8ad7ad7b06fb13fd35f6d7dc4fa31d8ac884711a.tar.bz2
Cleanup leading underscores from identifiers' names in org.eclipse.linuxtools.internal.oprofile.core.model.OpModelSymbol.
-rw-r--r--oprofile/org.eclipse.linuxtools.oprofile.core/src/org/eclipse/linuxtools/internal/oprofile/core/model/OpModelSymbol.java64
-rw-r--r--oprofile/org.eclipse.linuxtools.oprofile.core/src/org/eclipse/linuxtools/internal/oprofile/core/opxml/modeldata/SymbolsProcessor.java8
2 files changed, 36 insertions, 36 deletions
diff --git a/oprofile/org.eclipse.linuxtools.oprofile.core/src/org/eclipse/linuxtools/internal/oprofile/core/model/OpModelSymbol.java b/oprofile/org.eclipse.linuxtools.oprofile.core/src/org/eclipse/linuxtools/internal/oprofile/core/model/OpModelSymbol.java
index 6e9ed5d..3f626ff 100644
--- a/oprofile/org.eclipse.linuxtools.oprofile.core/src/org/eclipse/linuxtools/internal/oprofile/core/model/OpModelSymbol.java
+++ b/oprofile/org.eclipse.linuxtools.oprofile.core/src/org/eclipse/linuxtools/internal/oprofile/core/model/OpModelSymbol.java
@@ -18,74 +18,74 @@ package org.eclipse.linuxtools.internal.oprofile.core.model;
* complete debug info.
*/
public class OpModelSymbol {
- private String _name;
- private String _file;
- private int _line;
- private int _count;
- private OpModelSample[] _samples;
- private String _printTabs = ""; //for nice output //$NON-NLS-1$
+ private String name;
+ private String file;
+ private int line;
+ private int count;
+ private OpModelSample[] samples;
+ private String printTabs = ""; //for nice output //$NON-NLS-1$
public OpModelSymbol() {
- _name = ""; //$NON-NLS-1$
- _file = ""; //$NON-NLS-1$
- _count = 0;
- _samples = null;
+ name = ""; //$NON-NLS-1$
+ file = ""; //$NON-NLS-1$
+ count = 0;
+ samples = null;
}
- public void _setName(String _name) {
- this._name = _name;
+ public void setName(String name) {
+ this.name = name;
}
- public void _setFilePath(String _file) {
- this._file = _file;
+ public void setFilePath(String file) {
+ this.file = file;
}
- public void setLine(int _line){
- this._line = _line;
+ public void setLine(int line){
+ this.line = line;
}
- public void _setCount(int _count) {
- this._count = _count;
+ public void setCount(int count) {
+ this.count = count;
}
- public void _setSamples(OpModelSample[] _samples) {
- this._samples = _samples;
+ public void setSamples(OpModelSample[] samples) {
+ this.samples = samples;
}
public String getName() {
- return _name;
+ return name;
}
public String getFilePath() {
- return _file;
+ return file;
}
public int getLine(){
- return _line;
+ return line;
}
public int getCount() {
- return _count;
+ return count;
}
public OpModelSample[] getSamples() {
- return _samples;
+ return samples;
}
public String toString(String tabs) {
- _printTabs = tabs;
+ printTabs = tabs;
String s = toString();
- _printTabs = ""; //$NON-NLS-1$
+ printTabs = ""; //$NON-NLS-1$
return s;
}
@Override
public String toString() {
- String s = _name + ", File: " + _file + ", Count: " + _count + "\n"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- if (_samples != null) {
- for (int i = 0; i < _samples.length; i++) {
- s += _printTabs + "Sample: "; //$NON-NLS-1$
- s += _samples[i].toString();
+ String s = name + ", File: " + file + ", Count: " + count + "\n"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ if (samples != null) {
+ for (int i = 0; i < samples.length; i++) {
+ s += printTabs + "Sample: "; //$NON-NLS-1$
+ s += samples[i].toString();
}
}
return s;
diff --git a/oprofile/org.eclipse.linuxtools.oprofile.core/src/org/eclipse/linuxtools/internal/oprofile/core/opxml/modeldata/SymbolsProcessor.java b/oprofile/org.eclipse.linuxtools.oprofile.core/src/org/eclipse/linuxtools/internal/oprofile/core/opxml/modeldata/SymbolsProcessor.java
index 22665b0..2fa8832 100644
--- a/oprofile/org.eclipse.linuxtools.oprofile.core/src/org/eclipse/linuxtools/internal/oprofile/core/opxml/modeldata/SymbolsProcessor.java
+++ b/oprofile/org.eclipse.linuxtools.oprofile.core/src/org/eclipse/linuxtools/internal/oprofile/core/opxml/modeldata/SymbolsProcessor.java
@@ -51,9 +51,9 @@ public class SymbolsProcessor extends XMLProcessor {
*/
public void startElement(String name, Attributes attrs, Object callData) {
if (name.equals(SYMBOL_TAG)) {
- _symbol._setName(valid_string(attrs.getValue(ATTR_NAME)));
- _symbol._setCount(Integer.parseInt(attrs.getValue(ATTR_COUNT)));
- _symbol._setFilePath(valid_string(attrs.getValue(ATTR_FILE)));
+ _symbol.setName(valid_string(attrs.getValue(ATTR_NAME)));
+ _symbol.setCount(Integer.parseInt(attrs.getValue(ATTR_COUNT)));
+ _symbol.setFilePath(valid_string(attrs.getValue(ATTR_FILE)));
_symbol.setLine(Integer.parseInt(attrs.getValue(ATTR_LINE)));
} else if (name.equals(SAMPLE_TAG)) {
OprofileSAXHandler.getInstance(callData).push(_samplesProcessor);
@@ -65,7 +65,7 @@ public class SymbolsProcessor extends XMLProcessor {
*/
public void endElement(String name, Object callData) {
if (name.equals(SYMBOL_TAG)) {
- _symbol._setSamples(_samplesProcessor.getSamples());
+ _symbol.setSamples(_samplesProcessor.getSamples());
_symbols.add(_symbol);
_symbol = new OpModelSymbol();
} else if (name.equals(SYMBOLS_TAG)) {