diff options
author | Jay Arthanareeswaran | 2019-12-10 16:25:28 +0000 |
---|---|---|
committer | Jay Arthanareeswaran | 2020-03-02 04:23:03 +0000 |
commit | 1d8654c7df0790c2b897ff5b2ea778cefeeaa6c7 (patch) | |
tree | 7320c3f1423858a575735b192252c20ef0dd98a7 /org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/SwitchExpression.java | |
parent | f155ad2529cdd4348090a6325d855cd5909e98bf (diff) | |
download | eclipse.jdt.core-1d8654c7df0790c2b897ff5b2ea778cefeeaa6c7.tar.gz eclipse.jdt.core-1d8654c7df0790c2b897ff5b2ea778cefeeaa6c7.tar.xz eclipse.jdt.core-1d8654c7df0790c2b897ff5b2ea778cefeeaa6c7.zip |
the correct numeric type
Change-Id: I14d83f918479da63f84a45721813ff2b51320393
Signed-off-by: Jay Arthanareeswaran <jarthana@in.ibm.com>
Diffstat (limited to 'org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/SwitchExpression.java')
-rw-r--r-- | org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/SwitchExpression.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/SwitchExpression.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/SwitchExpression.java index b5244486bb..2a11bb000d 100644 --- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/SwitchExpression.java +++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/SwitchExpression.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2018, 2019 IBM Corporation and others. + * Copyright (c) 2018, 2020 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 @@ -57,7 +57,7 @@ public class SwitchExpression extends SwitchStatement implements IPolyExpression static { type_map = new HashMap<TypeBinding, TypeBinding[]>(); - type_map.put(TypeBinding.CHAR, new TypeBinding[] {TypeBinding.CHAR, TypeBinding.BYTE, TypeBinding.INT}); + type_map.put(TypeBinding.CHAR, new TypeBinding[] {TypeBinding.CHAR, TypeBinding.INT}); type_map.put(TypeBinding.SHORT, new TypeBinding[] {TypeBinding.SHORT, TypeBinding.BYTE, TypeBinding.INT}); type_map.put(TypeBinding.BYTE, new TypeBinding[] {TypeBinding.BYTE, TypeBinding.INT}); } |