Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Kozlov2012-04-05 11:59:32 +0000
committerRoland Grunberg2012-04-12 21:01:30 +0000
commit8dc931f45728d605c41eeb624e1cfed42311f0e0 (patch)
treeef9c2204c73d72ab28b2b9bc28f544b2a2c864ea
parent97e3ce592bb38bb81c1c0f6475ef1344080de887 (diff)
downloadorg.eclipse.linuxtools-8dc931f45728d605c41eeb624e1cfed42311f0e0.tar.gz
org.eclipse.linuxtools-8dc931f45728d605c41eeb624e1cfed42311f0e0.tar.xz
org.eclipse.linuxtools-8dc931f45728d605c41eeb624e1cfed42311f0e0.zip
Cleanup leading underscores from identifiers' names in org.eclipse.linuxtools.internal.oprofile.core.daemon.OpEvent.
-rw-r--r--oprofile/org.eclipse.linuxtools.oprofile.core/src/org/eclipse/linuxtools/internal/oprofile/core/daemon/OpEvent.java32
-rw-r--r--oprofile/org.eclipse.linuxtools.oprofile.core/src/org/eclipse/linuxtools/internal/oprofile/core/opxml/info/EventListProcessor.java8
2 files changed, 20 insertions, 20 deletions
diff --git a/oprofile/org.eclipse.linuxtools.oprofile.core/src/org/eclipse/linuxtools/internal/oprofile/core/daemon/OpEvent.java b/oprofile/org.eclipse.linuxtools.oprofile.core/src/org/eclipse/linuxtools/internal/oprofile/core/daemon/OpEvent.java
index a583b1758f..f20262fbb9 100644
--- a/oprofile/org.eclipse.linuxtools.oprofile.core/src/org/eclipse/linuxtools/internal/oprofile/core/daemon/OpEvent.java
+++ b/oprofile/org.eclipse.linuxtools.oprofile.core/src/org/eclipse/linuxtools/internal/oprofile/core/daemon/OpEvent.java
@@ -17,24 +17,24 @@ package org.eclipse.linuxtools.internal.oprofile.core.daemon;
*/
public class OpEvent {
// The Oprofile event name, i.e., "CPU_CLK_UNHALTED"
- private String _name;
+ private String name;
// A description of the event
- private String _description;
+ private String description;
// Unit masks for this event type
- private OpUnitMask _unitMask;
+ private OpUnitMask unitMask;
// Minimum count
- private int _minCount;
+ private int minCount;
/**
* Sets the unit mask for this event.
* Only called from XML parsers.
* @param mask the new unit mask
*/
- public void _setUnitMask(OpUnitMask mask) {
- _unitMask = mask;
+ public void setUnitMask(OpUnitMask mask) {
+ unitMask = mask;
}
/**
@@ -42,8 +42,8 @@ public class OpEvent {
* Only called from XML parsers.
* @param text the name
*/
- public void _setText(String text) {
- _name = text;
+ public void setText(String text) {
+ name = text;
}
/**
@@ -51,8 +51,8 @@ public class OpEvent {
* Only called from XML parsers.
* @param text the description
*/
- public void _setTextDescription(String text) {
- _description = text;
+ public void setTextDescription(String text) {
+ description = text;
}
/**
@@ -60,8 +60,8 @@ public class OpEvent {
* Only called from XML parsers.
* @param min the minimum count
*/
- public void _setMinCount(int min) {
- _minCount = min;
+ public void setMinCount(int min) {
+ minCount = min;
}
/**
@@ -69,7 +69,7 @@ public class OpEvent {
* @return the unit mask
*/
public OpUnitMask getUnitMask() {
- return _unitMask;
+ return unitMask;
}
/**
@@ -77,7 +77,7 @@ public class OpEvent {
* @return the name
*/
public String getText() {
- return _name;
+ return name;
}
/**
@@ -85,7 +85,7 @@ public class OpEvent {
* @return the description
*/
public String getTextDescription() {
- return _description;
+ return description;
}
/**
@@ -93,6 +93,6 @@ public class OpEvent {
* @return the minimum count
*/
public int getMinCount() {
- return _minCount;
+ return minCount;
}
}
diff --git a/oprofile/org.eclipse.linuxtools.oprofile.core/src/org/eclipse/linuxtools/internal/oprofile/core/opxml/info/EventListProcessor.java b/oprofile/org.eclipse.linuxtools.oprofile.core/src/org/eclipse/linuxtools/internal/oprofile/core/opxml/info/EventListProcessor.java
index cb17ae7559..de37d6cb94 100644
--- a/oprofile/org.eclipse.linuxtools.oprofile.core/src/org/eclipse/linuxtools/internal/oprofile/core/opxml/info/EventListProcessor.java
+++ b/oprofile/org.eclipse.linuxtools.oprofile.core/src/org/eclipse/linuxtools/internal/oprofile/core/opxml/info/EventListProcessor.java
@@ -211,16 +211,16 @@ public class EventListProcessor extends XMLProcessor {
_currentEventList.add(_currentEvent);
} else if (name.equals(_UNIT_MASK_TAG)) {
// Set the event's unit mask
- _currentEvent._setUnitMask(_umProcessor.getResult());
+ _currentEvent.setUnitMask(_umProcessor.getResult());
} else if (name.equals(_NAME_TAG)) {
// Set event's name
- _currentEvent._setText(_characters);
+ _currentEvent.setText(_characters);
} else if (name.equals(_DESCRIPTION_TAG)) {
// Set event's description
- _currentEvent._setTextDescription(_characters);
+ _currentEvent.setTextDescription(_characters);
} else if (name.equals(_MINIMUM_COUNT_TAG)) {
// Set event's minimum count
- _currentEvent._setMinCount(Integer.parseInt(_characters));
+ _currentEvent.setMinCount(Integer.parseInt(_characters));
} else if (name.equals(OpInfoProcessor.EVENT_LIST_TAG)) {
OprofileSAXHandler.getInstance(callData).pop(name);
}

Back to the top