Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonah Graham2018-11-20 16:20:42 +0000
committerJonah Graham2018-11-22 21:55:36 +0000
commitcaf2292768deccd885b5b6989b731742e2e5edf4 (patch)
tree711a6088f2e17c7e31ebb51af1eadc1af00768e5 /lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse
parent8844a8f9f22802fedffa3cb2a8a21b041aa64b74 (diff)
downloadorg.eclipse.cdt-caf2292768deccd885b5b6989b731742e2e5edf4.tar.gz
org.eclipse.cdt-caf2292768deccd885b5b6989b731742e2e5edf4.tar.xz
org.eclipse.cdt-caf2292768deccd885b5b6989b731742e2e5edf4.zip
Bug 540373: Cleanup: Remove redundant type arguments
This was done by selecting all projects in Eclipse then Source -> Clean Up... -> choosing: - Remove redundant type arguments and completing the wizard Change-Id: Iaecc7010f097b4b1fabd29ccaa34ccb23a716fbf
Diffstat (limited to 'lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse')
-rw-r--r--lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/BaseExtensibleLanguage.java4
-rw-r--r--lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/action/ScopedStack.java6
-rw-r--r--lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/action/TokenMap.java2
-rw-r--r--lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/action/cpp/CPPBuildASTParserAction.java8
-rw-r--r--lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/lpgextensions/AbstractTrialUndoActionProvider.java4
-rw-r--r--lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/lpgextensions/TrialUndoParser.java4
-rw-r--r--lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/c99/C99ExpressionParser.java2
-rw-r--r--lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/c99/C99NoCastExpressionParser.java2
-rw-r--r--lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/c99/C99Parser.java2
-rw-r--r--lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/c99/C99SizeofExpressionParser.java2
-rw-r--r--lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/cpp/CPPExpressionParser.java2
-rw-r--r--lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/cpp/CPPNoCastExpressionParser.java2
-rw-r--r--lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/cpp/CPPNoFunctionDeclaratorParser.java2
-rw-r--r--lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/cpp/CPPParser.java2
-rw-r--r--lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/cpp/CPPSizeofExpressionParser.java2
-rw-r--r--lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/cpp/CPPTemplateTypeParameterParser.java2
-rw-r--r--lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/gcc/GCCParser.java2
-rw-r--r--lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/gcc/GCCSizeofExpressionParser.java2
-rw-r--r--lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/gpp/GPPParser.java2
-rw-r--r--lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/gpp/GPPSizeofExpressionParser.java2
20 files changed, 28 insertions, 28 deletions
diff --git a/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/BaseExtensibleLanguage.java b/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/BaseExtensibleLanguage.java
index 208b840351..2455bd3eab 100644
--- a/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/BaseExtensibleLanguage.java
+++ b/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/BaseExtensibleLanguage.java
@@ -179,7 +179,7 @@ public abstract class BaseExtensibleLanguage extends AbstractLanguage {
final IScanner preprocessor = new CPreprocessor(reader, scanInfo, pl, log, config, fileCreator);
preprocessor.setComputeImageLocations((options & ILanguage.OPTION_NO_IMAGE_LOCATIONS) == 0);
- final Map<String, String> parserProperties = new HashMap<String, String>();
+ final Map<String, String> parserProperties = new HashMap<>();
parserProperties.put(LRParserProperties.TRANSLATION_UNIT_PATH, reader.getFileLocation());
if ((options & OPTION_SKIP_FUNCTION_BODIES) != 0)
parserProperties.put(LRParserProperties.SKIP_FUNCTION_BODIES, "true");
@@ -369,7 +369,7 @@ public abstract class BaseExtensibleLanguage extends AbstractLanguage {
IScanner preprocessor = new CPreprocessor(reader, scanInfo, pl, log, config, fileCreator);
preprocessor.setContentAssistMode(offset);
- Map<String, String> parserProperties = new HashMap<String, String>();
+ Map<String, String> parserProperties = new HashMap<>();
parserProperties.put(LRParserProperties.TRANSLATION_UNIT_PATH, reader.getFileLocation());
parserProperties.put(LRParserProperties.SKIP_FUNCTION_BODIES, "true");
parserProperties.put(LRParserProperties.SKIP_TRIVIAL_EXPRESSIONS_IN_AGGREGATE_INITIALIZERS, "true");
diff --git a/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/action/ScopedStack.java b/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/action/ScopedStack.java
index 4cc9c77396..77078b613d 100644
--- a/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/action/ScopedStack.java
+++ b/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/action/ScopedStack.java
@@ -67,8 +67,8 @@ public class ScopedStack<T> {
* Creates a new ScopedStack with the first scope already open.
*/
public ScopedStack() {
- topScope = new LinkedList<T>();
- scopeStack = new LinkedList<LinkedList<T>>();
+ topScope = new LinkedList<>();
+ scopeStack = new LinkedList<>();
}
/**
@@ -76,7 +76,7 @@ public class ScopedStack<T> {
*/
public void openScope() {
scopeStack.add(topScope);
- topScope = new LinkedList<T>();
+ topScope = new LinkedList<>();
}
/**
diff --git a/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/action/TokenMap.java b/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/action/TokenMap.java
index 4993989547..a63388091d 100644
--- a/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/action/TokenMap.java
+++ b/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/action/TokenMap.java
@@ -44,7 +44,7 @@ public class TokenMap implements ITokenMap {
kindMap = new int[fromSymbols.length];
- HashMap<String, Integer> toMap = new HashMap<String, Integer>();
+ HashMap<String, Integer> toMap = new HashMap<>();
for (int i = 0, n = toSymbols.length; i < n; i++) {
toMap.put(toSymbols[i], i);
}
diff --git a/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/action/cpp/CPPBuildASTParserAction.java b/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/action/cpp/CPPBuildASTParserAction.java
index 4a97e4c916..a240800160 100644
--- a/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/action/cpp/CPPBuildASTParserAction.java
+++ b/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/action/cpp/CPPBuildASTParserAction.java
@@ -182,7 +182,7 @@ public class CPPBuildASTParserAction extends BuildASTParserAction {
protected final ICPPSecondaryParserFactory parserFactory;
/** Stack that provides easy access to the current class name, used to disambiguate declarators. */
- protected final LinkedList<IASTName> classNames = new LinkedList<IASTName>();
+ protected final LinkedList<IASTName> classNames = new LinkedList<>();
/**
* @param parser
@@ -834,7 +834,7 @@ public class CPPBuildASTParserAction extends BuildASTParserAction {
if (hasNested)
names = (LinkedList<IASTName>) astStack.pop();
else
- names = new LinkedList<IASTName>();
+ names = new LinkedList<>();
IASTName name = (IASTName) astStack.pop();
names.add(name);
@@ -1285,7 +1285,7 @@ public class CPPBuildASTParserAction extends BuildASTParserAction {
* ::= declaration_specifiers_opt <openscope-ast> init_declarator_list_opt ';'
*/
public void consumeDeclarationSimple(boolean hasDeclaratorList) {
- List<Object> declarators = hasDeclaratorList ? astStack.closeScope() : new ArrayList<Object>();
+ List<Object> declarators = hasDeclaratorList ? astStack.closeScope() : new ArrayList<>();
ICPPASTDeclSpecifier declSpec = (ICPPASTDeclSpecifier) astStack.pop(); // may be null
List<IToken> ruleTokens = stream.getRuleTokens();
@@ -1302,7 +1302,7 @@ public class CPPBuildASTParserAction extends BuildASTParserAction {
IASTName name = createName(stream.getLeftIToken());
declSpec = nodeFactory.newTypedefNameSpecifier(name);
ParserUtil.setOffsetAndLength(declSpec, offset(name), length(name));
- declarators = new ArrayList<Object>(); // throw away the bogus declarator
+ declarators = new ArrayList<>(); // throw away the bogus declarator
}
// can happen if implicit int is used
diff --git a/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/lpgextensions/AbstractTrialUndoActionProvider.java b/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/lpgextensions/AbstractTrialUndoActionProvider.java
index 217fde12e7..94bd6db7fd 100644
--- a/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/lpgextensions/AbstractTrialUndoActionProvider.java
+++ b/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/lpgextensions/AbstractTrialUndoActionProvider.java
@@ -29,7 +29,7 @@ public abstract class AbstractTrialUndoActionProvider<ACT, RULE_DATA> extends Pr
/**
* An action that does nothing.
*/
- public static final Action<Object, Object> EMPTY_ACTION = new Action<Object, Object>();
+ public static final Action<Object, Object> EMPTY_ACTION = new Action<>();
/**
* The parser table interpreter.
@@ -141,7 +141,7 @@ public abstract class AbstractTrialUndoActionProvider<ACT, RULE_DATA> extends Pr
}
public static <ACT, RULE_DATA> Action<ACT, RULE_DATA> emptyAction() {
- return new Action<ACT, RULE_DATA>();
+ return new Action<>();
}
@SuppressWarnings("unused")
diff --git a/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/lpgextensions/TrialUndoParser.java b/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/lpgextensions/TrialUndoParser.java
index 796fc8df88..6181c7b67d 100644
--- a/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/lpgextensions/TrialUndoParser.java
+++ b/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/core/dom/lrparser/lpgextensions/TrialUndoParser.java
@@ -223,7 +223,7 @@ public class TrialUndoParser {
// Allocate configuration stack.
//
state.configurationStack = new ConfigurationStack(prs);
- state.trialActionStack = new LinkedList<Integer>();
+ state.trialActionStack = new LinkedList<>();
state.trialActionStack.add(Integer.valueOf(state.trialActionCount));
//
@@ -329,7 +329,7 @@ public class TrialUndoParser {
// Allocate configuration stack.
//
state.configurationStack = new ConfigurationStack(prs);
- state.trialActionStack = new LinkedList<Integer>();
+ state.trialActionStack = new LinkedList<>();
state.trialActionStack.add(Integer.valueOf(state.trialActionCount));
//
diff --git a/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/c99/C99ExpressionParser.java b/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/c99/C99ExpressionParser.java
index d1942165a4..dcc4650529 100644
--- a/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/c99/C99ExpressionParser.java
+++ b/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/c99/C99ExpressionParser.java
@@ -228,7 +228,7 @@ public class C99ExpressionParser extends PrsStream implements RuleAction, IToken
}
private void initActions(Map<String, String> properties) {
- ScopedStack<Object> astStack = new ScopedStack<Object>();
+ ScopedStack<Object> astStack = new ScopedStack<>();
action = new C99BuildASTParserAction(this, astStack, CNodeFactory.getDefault(),
C99SecondaryParserFactory.getDefault());
diff --git a/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/c99/C99NoCastExpressionParser.java b/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/c99/C99NoCastExpressionParser.java
index d1aec14f11..cf08f2201f 100644
--- a/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/c99/C99NoCastExpressionParser.java
+++ b/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/c99/C99NoCastExpressionParser.java
@@ -228,7 +228,7 @@ public class C99NoCastExpressionParser extends PrsStream implements RuleAction,
}
private void initActions(Map<String, String> properties) {
- ScopedStack<Object> astStack = new ScopedStack<Object>();
+ ScopedStack<Object> astStack = new ScopedStack<>();
action = new C99BuildASTParserAction(this, astStack, CNodeFactory.getDefault(),
C99SecondaryParserFactory.getDefault());
diff --git a/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/c99/C99Parser.java b/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/c99/C99Parser.java
index 011cc7bf8e..9732b5ac37 100644
--- a/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/c99/C99Parser.java
+++ b/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/c99/C99Parser.java
@@ -225,7 +225,7 @@ public class C99Parser extends PrsStream
}
private void initActions(Map<String, String> properties) {
- ScopedStack<Object> astStack = new ScopedStack<Object>();
+ ScopedStack<Object> astStack = new ScopedStack<>();
action = new C99BuildASTParserAction(this, astStack, CNodeFactory.getDefault(),
C99SecondaryParserFactory.getDefault());
diff --git a/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/c99/C99SizeofExpressionParser.java b/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/c99/C99SizeofExpressionParser.java
index eb472080d1..431d32c914 100644
--- a/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/c99/C99SizeofExpressionParser.java
+++ b/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/c99/C99SizeofExpressionParser.java
@@ -228,7 +228,7 @@ public class C99SizeofExpressionParser extends PrsStream implements RuleAction,
}
private void initActions(Map<String, String> properties) {
- ScopedStack<Object> astStack = new ScopedStack<Object>();
+ ScopedStack<Object> astStack = new ScopedStack<>();
action = new C99BuildASTParserAction(this, astStack, CNodeFactory.getDefault(),
C99SecondaryParserFactory.getDefault());
diff --git a/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/cpp/CPPExpressionParser.java b/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/cpp/CPPExpressionParser.java
index 273ba36cb5..ad608341e8 100644
--- a/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/cpp/CPPExpressionParser.java
+++ b/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/cpp/CPPExpressionParser.java
@@ -227,7 +227,7 @@ public class CPPExpressionParser extends PrsStream implements RuleAction, IToken
}
private void initActions(Map<String, String> properties) {
- ScopedStack<Object> astStack = new ScopedStack<Object>();
+ ScopedStack<Object> astStack = new ScopedStack<>();
action = new CPPBuildASTParserAction(this, astStack, CPPNodeFactory.getDefault(),
CPPSecondaryParserFactory.getDefault());
diff --git a/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/cpp/CPPNoCastExpressionParser.java b/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/cpp/CPPNoCastExpressionParser.java
index 3e97046ad6..abcc58130f 100644
--- a/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/cpp/CPPNoCastExpressionParser.java
+++ b/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/cpp/CPPNoCastExpressionParser.java
@@ -228,7 +228,7 @@ public class CPPNoCastExpressionParser extends PrsStream implements RuleAction,
}
private void initActions(Map<String, String> properties) {
- ScopedStack<Object> astStack = new ScopedStack<Object>();
+ ScopedStack<Object> astStack = new ScopedStack<>();
action = new CPPBuildASTParserAction(this, astStack, CPPNodeFactory.getDefault(),
CPPSecondaryParserFactory.getDefault());
diff --git a/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/cpp/CPPNoFunctionDeclaratorParser.java b/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/cpp/CPPNoFunctionDeclaratorParser.java
index baac3dd691..3fe05594cb 100644
--- a/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/cpp/CPPNoFunctionDeclaratorParser.java
+++ b/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/cpp/CPPNoFunctionDeclaratorParser.java
@@ -228,7 +228,7 @@ public class CPPNoFunctionDeclaratorParser extends PrsStream implements RuleActi
}
private void initActions(Map<String, String> properties) {
- ScopedStack<Object> astStack = new ScopedStack<Object>();
+ ScopedStack<Object> astStack = new ScopedStack<>();
action = new CPPBuildASTParserAction(this, astStack, CPPNodeFactory.getDefault(),
CPPSecondaryParserFactory.getDefault());
diff --git a/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/cpp/CPPParser.java b/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/cpp/CPPParser.java
index 9eaecd071b..51f57124e4 100644
--- a/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/cpp/CPPParser.java
+++ b/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/cpp/CPPParser.java
@@ -224,7 +224,7 @@ public class CPPParser extends PrsStream
}
private void initActions(Map<String, String> properties) {
- ScopedStack<Object> astStack = new ScopedStack<Object>();
+ ScopedStack<Object> astStack = new ScopedStack<>();
action = new CPPBuildASTParserAction(this, astStack, CPPNodeFactory.getDefault(),
CPPSecondaryParserFactory.getDefault());
diff --git a/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/cpp/CPPSizeofExpressionParser.java b/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/cpp/CPPSizeofExpressionParser.java
index 9ba3c8bf77..3f8479efd7 100644
--- a/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/cpp/CPPSizeofExpressionParser.java
+++ b/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/cpp/CPPSizeofExpressionParser.java
@@ -227,7 +227,7 @@ public class CPPSizeofExpressionParser extends PrsStream implements RuleAction,
}
private void initActions(Map<String, String> properties) {
- ScopedStack<Object> astStack = new ScopedStack<Object>();
+ ScopedStack<Object> astStack = new ScopedStack<>();
action = new CPPBuildASTParserAction(this, astStack, CPPNodeFactory.getDefault(),
CPPSecondaryParserFactory.getDefault());
diff --git a/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/cpp/CPPTemplateTypeParameterParser.java b/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/cpp/CPPTemplateTypeParameterParser.java
index a8044972e2..4778743639 100644
--- a/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/cpp/CPPTemplateTypeParameterParser.java
+++ b/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/cpp/CPPTemplateTypeParameterParser.java
@@ -228,7 +228,7 @@ public class CPPTemplateTypeParameterParser extends PrsStream implements RuleAct
}
private void initActions(Map<String, String> properties) {
- ScopedStack<Object> astStack = new ScopedStack<Object>();
+ ScopedStack<Object> astStack = new ScopedStack<>();
action = new CPPBuildASTParserAction(this, astStack, CPPNodeFactory.getDefault(),
CPPSecondaryParserFactory.getDefault());
diff --git a/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/gcc/GCCParser.java b/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/gcc/GCCParser.java
index 550bfaa011..ff441f30a9 100644
--- a/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/gcc/GCCParser.java
+++ b/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/gcc/GCCParser.java
@@ -226,7 +226,7 @@ public class GCCParser extends PrsStream
}
private void initActions(Map<String, String> properties) {
- ScopedStack<Object> astStack = new ScopedStack<Object>();
+ ScopedStack<Object> astStack = new ScopedStack<>();
action = new GCCBuildASTParserAction(this, astStack, CNodeFactory.getDefault(),
GCCSecondaryParserFactory.getDefault());
diff --git a/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/gcc/GCCSizeofExpressionParser.java b/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/gcc/GCCSizeofExpressionParser.java
index b61e1f616e..ae42223289 100644
--- a/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/gcc/GCCSizeofExpressionParser.java
+++ b/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/gcc/GCCSizeofExpressionParser.java
@@ -230,7 +230,7 @@ public class GCCSizeofExpressionParser extends PrsStream implements RuleAction,
}
private void initActions(Map<String, String> properties) {
- ScopedStack<Object> astStack = new ScopedStack<Object>();
+ ScopedStack<Object> astStack = new ScopedStack<>();
action = new GCCBuildASTParserAction(this, astStack, CNodeFactory.getDefault(),
GCCSecondaryParserFactory.getDefault());
diff --git a/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/gpp/GPPParser.java b/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/gpp/GPPParser.java
index ab3c2e7ed2..6a6f413383 100644
--- a/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/gpp/GPPParser.java
+++ b/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/gpp/GPPParser.java
@@ -228,7 +228,7 @@ public class GPPParser extends PrsStream
}
private void initActions(Map<String, String> properties) {
- ScopedStack<Object> astStack = new ScopedStack<Object>();
+ ScopedStack<Object> astStack = new ScopedStack<>();
action = new GPPBuildASTParserAction(this, astStack, CPPNodeFactory.getDefault(),
GPPSecondaryParserFactory.getDefault());
diff --git a/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/gpp/GPPSizeofExpressionParser.java b/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/gpp/GPPSizeofExpressionParser.java
index 61af36c480..8849579a52 100644
--- a/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/gpp/GPPSizeofExpressionParser.java
+++ b/lrparser/org.eclipse.cdt.core.lrparser/src/org/eclipse/cdt/internal/core/dom/lrparser/gpp/GPPSizeofExpressionParser.java
@@ -231,7 +231,7 @@ public class GPPSizeofExpressionParser extends PrsStream implements RuleAction,
}
private void initActions(Map<String, String> properties) {
- ScopedStack<Object> astStack = new ScopedStack<Object>();
+ ScopedStack<Object> astStack = new ScopedStack<>();
action = new GPPBuildASTParserAction(this, astStack, CPPNodeFactory.getDefault(),
GPPSecondaryParserFactory.getDefault());

Back to the top