[autocomplete] 76/143: Made the toString() on ParametertizedCompletion a bit more friendly. JavaScript Function completions extend this class and were not resolving their types correctly
Benjamin Mesing
ben at alioth.debian.org
Sat Oct 19 12:53:21 UTC 2013
This is an automated email from the git hooks/post-receive script.
ben pushed a commit to branch master
in repository autocomplete.
commit 2089886da1f23bf2db8b9d2063675f4b3970a304
Author: Steve Upton <steve at upton.me.uk>
Date: Wed Apr 18 16:37:52 2012 +0000
Made the toString() on ParametertizedCompletion a bit more friendly. JavaScript Function completions extend this class and were not resolving their types correctly
---
src/org/fife/ui/autocomplete/ParameterizedCompletion.java | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/org/fife/ui/autocomplete/ParameterizedCompletion.java b/src/org/fife/ui/autocomplete/ParameterizedCompletion.java
index 8f9d633..9c5152e 100644
--- a/src/org/fife/ui/autocomplete/ParameterizedCompletion.java
+++ b/src/org/fife/ui/autocomplete/ParameterizedCompletion.java
@@ -107,14 +107,14 @@ public interface ParameterizedCompletion extends Completion {
public String toString() {
StringBuffer sb = new StringBuffer();
- if (type!=null) {
- sb.append(type);
+ if (getType()!=null) {
+ sb.append(getType());
}
- if (name!=null) {
- if (type!=null) {
+ if (getName()!=null) {
+ if (getType()!=null) {
sb.append(' ');
}
- sb.append(name);
+ sb.append(getName());
}
return sb.toString();
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/autocomplete.git
More information about the pkg-java-commits
mailing list