1 /*
2  * Copyright (C) 2014 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License"); you may not
5  * use this file except in compliance with the License. You may obtain a copy of
6  * the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13  * License for the specific language governing permissions and limitations under
14  * the License.
15  */
16 package com.android.multidexlegacyandexception;
17 
18 public class MiniIntermediateClass {
19 
get3(boolean condition)20     public static int get3(boolean condition) {
21         ClassInSecondaryDex thrower = new ClassInSecondaryDex(condition);
22         try {
23             thrower.canThrow2();
24             thrower.canThrow1();
25             return 1;
26         } catch (ExceptionInMainDex e) {
27             return 10;
28         } catch (ExceptionInSecondaryDex e) {
29             return 11;
30         } catch (SuperExceptionInSecondaryDex|SuperExceptionInMainDex e) {
31             return 23;
32         }
33     }
34 
35 }
36