Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLakshmi Shanmugam2018-07-23 12:14:07 +0000
committerLakshmi Shanmugam2018-07-28 13:59:17 +0000
commitd6b997b3335c79aace68153377ce8b2c2af2c1d8 (patch)
tree2edd83b9d4afd2c34c5d8c34c54dcab845f67084
parentb51b906d4824d826b77d0548fd7b1c8d85a7dcf5 (diff)
downloadeclipse.platform.swt-d6b997b3335c79aace68153377ce8b2c2af2c1d8.tar.gz
eclipse.platform.swt-d6b997b3335c79aace68153377ce8b2c2af2c1d8.tar.xz
eclipse.platform.swt-d6b997b3335c79aace68153377ce8b2c2af2c1d8.zip
Bug 514191 - Bridge support files should be updated to latest macOS
supported version (10.11) strip greater-than sign Change-Id: I094a2ff75645bfad5d8d1633a8360ee496c60531
-rw-r--r--bundles/org.eclipse.swt.tools/Mac Generation/org/eclipse/swt/tools/internal/MacGenerator.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt.tools/Mac Generation/org/eclipse/swt/tools/internal/MacGenerator.java b/bundles/org.eclipse.swt.tools/Mac Generation/org/eclipse/swt/tools/internal/MacGenerator.java
index 2c9e7c2211..eaba4c6923 100644
--- a/bundles/org.eclipse.swt.tools/Mac Generation/org/eclipse/swt/tools/internal/MacGenerator.java
+++ b/bundles/org.eclipse.swt.tools/Mac Generation/org/eclipse/swt/tools/internal/MacGenerator.java
@@ -306,6 +306,9 @@ private String getDeclaredType(NamedNodeMap map, Node location) {
// strip any _Nullable and _Nonnull annotations
value = value.replace("_Nullable", "").replace("_Nonnull", "").replace("_Null_unspecified", "");
+
+ // strip greater-than (>) sign
+ value = value.replace(">", "");
// also remove any white spaces
value = value.chars().filter((c)->!Character.isWhitespace(c)).mapToObj(c -> String.valueOf((char)c)).collect(Collectors.joining());

Back to the top