Mercurial > hg > truffle
comparison truffle/com.oracle.truffle.api.vm/src/com/oracle/truffle/api/vm/SymbolInvokerImpl.java @ 22131:626862cfa58d
removed unnecessary exception clause
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Thu, 03 Sep 2015 17:56:41 +0200 |
parents | 0589cc5cab30 |
children | e70b20f4bb00 |
comparison
equal
deleted
inserted
replaced
22130:226ce74876b0 | 22131:626862cfa58d |
---|---|
24 */ | 24 */ |
25 package com.oracle.truffle.api.vm; | 25 package com.oracle.truffle.api.vm; |
26 | 26 |
27 import com.oracle.truffle.api.*; | 27 import com.oracle.truffle.api.*; |
28 import com.oracle.truffle.api.frame.*; | 28 import com.oracle.truffle.api.frame.*; |
29 import com.oracle.truffle.api.interop.ForeignAccess; | 29 import com.oracle.truffle.api.interop.*; |
30 import com.oracle.truffle.api.interop.Message; | |
31 import com.oracle.truffle.api.interop.TruffleObject; | |
32 import com.oracle.truffle.api.nodes.*; | 30 import com.oracle.truffle.api.nodes.*; |
33 import java.io.*; | |
34 | 31 |
35 final class SymbolInvokerImpl { | 32 final class SymbolInvokerImpl { |
36 @SuppressWarnings({"unchecked", "rawtypes"}) | 33 @SuppressWarnings({"unchecked", "rawtypes"}) |
37 static CallTarget createCallTarget(TruffleLanguage<?> lang, Object symbol, Object... arr) throws IOException { | 34 static CallTarget createCallTarget(TruffleLanguage<?> lang, Object symbol, Object... arr) { |
38 Class<? extends TruffleLanguage<?>> type; | 35 Class<? extends TruffleLanguage<?>> type; |
39 if (lang != null) { | 36 if (lang != null) { |
40 type = (Class) lang.getClass(); | 37 type = (Class) lang.getClass(); |
41 } else { | 38 } else { |
42 type = (Class) TruffleLanguage.class; | 39 type = (Class) TruffleLanguage.class; |