Skip to content

Commit ff8bff1

Browse files
authored
Merge pull request #56 from UCSDOalads/addTESTbylhwlyd1
fixed the topoint location error
2 parents cf75a20 + 37e9ea2 commit ff8bff1

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/paintcomponents/java/interactive/MethodPaintComponent.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ private void init() {
5858
// parameters take place from line 2 to length+1
5959
Class[] paramTypes = displayingMethod.getParameterTypes();
6060
for (int i = 0; i < paramTypes.length ; i++) {
61-
addToPoint(i + 2, new JavaType(paramTypes[i]));
61+
addToPoint(i + 1, new JavaType(paramTypes[i]));
6262
}
6363

6464
// method's return value take line length+1 since we no longer have a from point for instance

src/ui/general/InputManager.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ public void askForInt(PaintPanel panel, InputManagerDelegate<Integer> delegate)
7272
}
7373
}
7474

75-
// TODO askForClass
7675
public void askForClass(PaintPanel panel, InputManagerDelegate<Class> delegate) {
7776
ClassSearchFrame classSearchFrame = new ClassSearchFrame();
7877
classSearchFrame.setDelegate(new ClassSearchFrameDelegateInterface() {

0 commit comments

Comments
 (0)