Skip to content

Commit 4553cee

Browse files
committed
Fixes to compile under Java 1.5 (on my Linux machine).
1 parent b73cf39 commit 4553cee

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

app/src/processing/app/Editor.java

-1
Original file line numberDiff line numberDiff line change
@@ -2655,7 +2655,6 @@ class TextAreaPopup extends JPopupMenu {
26552655
public TextAreaPopup() {
26562656
openURLItem = new JMenuItem("Open URL");
26572657
openURLItem.addActionListener(new ActionListener() {
2658-
@Override
26592658
public void actionPerformed(ActionEvent e) {
26602659
Base.openURL(clickedURL);
26612660
}

app/src/processing/app/syntax/SyntaxUtilities.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -211,15 +211,15 @@ private static int drawTabbedCommentsText(Segment line, int x, int y,
211211
Segment tag = stringToSegment(parse[1]);
212212
Segment post = stringToSegment(parse[2]);
213213

214-
if (pre.length()>0)
214+
if (pre.count>0)
215215
x = Utilities.drawTabbedText(pre, x, y, gfx, expander, 0);
216216

217217
Font f = gfx.getFont();
218218
styles[Token.URL].setGraphicsFlags(gfx, f);
219219
x = Utilities.drawTabbedText(tag, x, y, gfx, expander, 0);
220220

221221
commentStyle.setGraphicsFlags(gfx, f);
222-
if (post.length()>0)
222+
if (post.count>0)
223223
x = Utilities.drawTabbedText(post, x, y, gfx, expander, 0);
224224
return x;
225225
}

0 commit comments

Comments
 (0)