mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-15 16:28:56 +00:00
[420984] Compiler optimization: Suppress creation of unused exception variable
Recompiled Xtend files Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
This commit is contained in:
parent
8d0268e386
commit
809377cd27
10 changed files with 0 additions and 17 deletions
|
@ -44,7 +44,6 @@ public class DocumentTest {
|
|||
Assert.fail();
|
||||
} catch (final Throwable _t) {
|
||||
if (_t instanceof IndexOutOfBoundsException) {
|
||||
final IndexOutOfBoundsException e = (IndexOutOfBoundsException)_t;
|
||||
} else {
|
||||
throw Exceptions.sneakyThrow(_t);
|
||||
}
|
||||
|
@ -68,7 +67,6 @@ public class DocumentTest {
|
|||
Assert.fail();
|
||||
} catch (final Throwable _t) {
|
||||
if (_t instanceof IndexOutOfBoundsException) {
|
||||
final IndexOutOfBoundsException e = (IndexOutOfBoundsException)_t;
|
||||
} else {
|
||||
throw Exceptions.sneakyThrow(_t);
|
||||
}
|
||||
|
|
|
@ -97,7 +97,6 @@ public class SemanticRegionFinderTest {
|
|||
Assert.fail();
|
||||
} catch (final Throwable _t) {
|
||||
if (_t instanceof IllegalStateException) {
|
||||
final IllegalStateException e = (IllegalStateException)_t;
|
||||
} else {
|
||||
throw Exceptions.sneakyThrow(_t);
|
||||
}
|
||||
|
@ -107,7 +106,6 @@ public class SemanticRegionFinderTest {
|
|||
Assert.fail();
|
||||
} catch (final Throwable _t_1) {
|
||||
if (_t_1 instanceof IllegalStateException) {
|
||||
final IllegalStateException e_1 = (IllegalStateException)_t_1;
|
||||
} else {
|
||||
throw Exceptions.sneakyThrow(_t_1);
|
||||
}
|
||||
|
@ -235,7 +233,6 @@ public class SemanticRegionFinderTest {
|
|||
Assert.fail();
|
||||
} catch (final Throwable _t) {
|
||||
if (_t instanceof IllegalStateException) {
|
||||
final IllegalStateException e = (IllegalStateException)_t;
|
||||
} else {
|
||||
throw Exceptions.sneakyThrow(_t);
|
||||
}
|
||||
|
@ -245,7 +242,6 @@ public class SemanticRegionFinderTest {
|
|||
Assert.fail();
|
||||
} catch (final Throwable _t_1) {
|
||||
if (_t_1 instanceof IllegalStateException) {
|
||||
final IllegalStateException e_1 = (IllegalStateException)_t_1;
|
||||
} else {
|
||||
throw Exceptions.sneakyThrow(_t_1);
|
||||
}
|
||||
|
@ -263,7 +259,6 @@ public class SemanticRegionFinderTest {
|
|||
Assert.fail();
|
||||
} catch (final Throwable _t) {
|
||||
if (_t instanceof IllegalStateException) {
|
||||
final IllegalStateException e = (IllegalStateException)_t;
|
||||
} else {
|
||||
throw Exceptions.sneakyThrow(_t);
|
||||
}
|
||||
|
@ -273,7 +268,6 @@ public class SemanticRegionFinderTest {
|
|||
Assert.fail();
|
||||
} catch (final Throwable _t_1) {
|
||||
if (_t_1 instanceof IllegalStateException) {
|
||||
final IllegalStateException e_1 = (IllegalStateException)_t_1;
|
||||
} else {
|
||||
throw Exceptions.sneakyThrow(_t_1);
|
||||
}
|
||||
|
|
|
@ -120,7 +120,6 @@ public class PortableURIsTest extends AbstractXtextTests {
|
|||
Assert.fail();
|
||||
} catch (final Throwable _t) {
|
||||
if (_t instanceof IllegalStateException) {
|
||||
final IllegalStateException e = (IllegalStateException)_t;
|
||||
} else {
|
||||
throw Exceptions.sneakyThrow(_t);
|
||||
}
|
||||
|
|
|
@ -101,7 +101,6 @@ public class XtextVersion {
|
|||
return manifest.getMainAttributes().getValue("Maven-Version");
|
||||
} catch (final Throwable _t) {
|
||||
if (_t instanceof Exception) {
|
||||
final Exception e = (Exception)_t;
|
||||
return null;
|
||||
} else {
|
||||
throw Exceptions.sneakyThrow(_t);
|
||||
|
@ -112,7 +111,6 @@ public class XtextVersion {
|
|||
is.close();
|
||||
} catch (final Throwable _t_1) {
|
||||
if (_t_1 instanceof IOException) {
|
||||
final IOException e_1 = (IOException)_t_1;
|
||||
} else {
|
||||
throw Exceptions.sneakyThrow(_t_1);
|
||||
}
|
||||
|
|
|
@ -132,7 +132,6 @@ public class StandardLanguage extends XtextGeneratorLanguage {
|
|||
this.addReferencedResource("platform:/resource/org.eclipse.xtext.xbase/model/Xbase.genmodel");
|
||||
} catch (final Throwable _t) {
|
||||
if (_t instanceof ClassNotFoundException) {
|
||||
final ClassNotFoundException e = (ClassNotFoundException)_t;
|
||||
StandardLanguage.LOG.info("Skipping registration of Xbase genmodel. Xbase is not on the classpath.");
|
||||
} else {
|
||||
throw Exceptions.sneakyThrow(_t);
|
||||
|
|
|
@ -65,7 +65,6 @@ public class XtextGeneratorResourceSetInitializer {
|
|||
genModelSupport.getDeclaredMethod("createInjectorAndDoEMFRegistration").invoke(instance);
|
||||
} catch (final Throwable _t) {
|
||||
if (_t instanceof ClassNotFoundException) {
|
||||
final ClassNotFoundException e = (ClassNotFoundException)_t;
|
||||
XtextGeneratorResourceSetInitializer.LOG.debug("org.eclipse.emf.codegen.ecore.xtext.GenModelSupport not found, GenModels will not be indexed");
|
||||
} else if (_t instanceof Exception) {
|
||||
final Exception e_1 = (Exception)_t;
|
||||
|
|
|
@ -47,7 +47,6 @@ public class FileSystemAccessQueue extends AdapterImpl {
|
|||
return request;
|
||||
} catch (final Throwable _t) {
|
||||
if (_t instanceof InterruptedException) {
|
||||
final InterruptedException e = (InterruptedException)_t;
|
||||
throw new OperationCanceledException();
|
||||
} else {
|
||||
throw Exceptions.sneakyThrow(_t);
|
||||
|
|
|
@ -141,7 +141,6 @@ public class URIBasedFileSystemAccess extends AbstractFileSystemAccess2 {
|
|||
this.generateFile(traceFileName, outputConfigName, _byteArrayInputStream);
|
||||
} catch (final Throwable _t) {
|
||||
if (_t instanceof TraceNotFoundException) {
|
||||
final TraceNotFoundException e = (TraceNotFoundException)_t;
|
||||
} else {
|
||||
throw Exceptions.sneakyThrow(_t);
|
||||
}
|
||||
|
|
|
@ -68,7 +68,6 @@ public class StorageAwareResource extends LazyLinkingResource {
|
|||
return;
|
||||
} catch (final Throwable _t) {
|
||||
if (_t instanceof IOException) {
|
||||
final IOException e = (IOException)_t;
|
||||
this.contents.clear();
|
||||
this.eAdapters.clear();
|
||||
this.unload();
|
||||
|
|
|
@ -65,7 +65,6 @@ public class PreferenceTaskTagProvider implements ITaskTagProvider {
|
|||
_xtrycatchfinallyexpression = Priority.valueOf(prios.get((i).intValue()));
|
||||
} catch (final Throwable _t) {
|
||||
if (_t instanceof IllegalArgumentException) {
|
||||
final IllegalArgumentException e = (IllegalArgumentException)_t;
|
||||
_xtrycatchfinallyexpression = Priority.NORMAL;
|
||||
} else {
|
||||
throw Exceptions.sneakyThrow(_t);
|
||||
|
|
Loading…
Reference in a new issue