Fixed bug 509172 - Wrong null check in
org.eclipse.jdt.internal.corext.refactoring.typeconstraints2.ConstraintVariable2#toString()
Change-Id: I999a3640e205d83b379f6b7e0ea9cacce7a1e21b
Signed-off-by: Olivier Thomann <Olivier_Thomann@ca.ibm.com>
diff --git a/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/typeconstraints2/ConstraintVariable2.java b/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/typeconstraints2/ConstraintVariable2.java
index a453d40..fe5f4df 100644
--- a/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/typeconstraints2/ConstraintVariable2.java
+++ b/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/typeconstraints2/ConstraintVariable2.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2011 IBM Corporation and others.
+ * Copyright (c) 2000, 2016 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -111,6 +111,6 @@
String name= getClass().getName();
int dot= name.lastIndexOf('.');
- return name.substring(dot + 1) + ": " + fType != null ? fType.getPrettySignature() : "<NONE>"; //$NON-NLS-1$ //$NON-NLS-2$
+ return name.substring(dot + 1) + ": " + (fType != null ? fType.getPrettySignature() : "<NONE>"); //$NON-NLS-1$ //$NON-NLS-2$
}
}