@@ -0,0 +1,1196 @@
+/*%0A * Copyright 2015 Real Logic Ltd.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A * http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage uk.co.real_logic.agrona;%0A%0A/**%0A * Grouping of language level utilities to make programming in Java more convenient.%0A */%0Apublic class LangUtil%0A%7B%0A    /**%0A     * Rethrow an %7B@link java.lang.Exception%7D preserving the stack trace but making it unchecked.%0A     *%0A     * @param ex to be rethrown and unchecked.%0A     */%0A    public static void rethrowUnchecked(final Exception ex)%0A    %7B%0A        LangUtil.%3CRuntimeException%3Erethrow(ex);%0A    %7D%0A%0A    @SuppressWarnings(%22unchecked%22)%0A    private static %3CT extends Exception%3E void rethrow(final Exception ex)%0A        throws T%0A    %7B%0A        throw (T)ex;%0A    %7D%0A%7D%0A

Add availability to rethrow an exception as unchecked and preserving the stack trace without wrapping.