PageRenderTime 60ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/dex-translator/src/test/java/res/I56_AccessFlag.java

https://code.google.com/p/dex2jar/
Java | 105 lines | 54 code | 21 blank | 30 comment | 0 complexity | e549e18a47be98008b861e4e7a032d81 MD5 | raw file
Possible License(s): Apache-2.0, BSD-3-Clause
  1. /*
  2. * Copyright (c) 2009-2012 Panxiaobo
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of 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,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. package res;
  17. /**
  18. * @author <a href="mailto:pxb1988@gmail.com">Panxiaobo</a>
  19. *
  20. */
  21. public class I56_AccessFlag {
  22. static class AStaticInnerClass {
  23. }
  24. class AInnerClass {
  25. class AAA {
  26. }
  27. }
  28. interface AInterface {
  29. }
  30. public static class B1 {
  31. };
  32. public static class B11 {
  33. public static class XXX1 {
  34. };
  35. };
  36. private static class B2 {
  37. };
  38. protected static class B3 {
  39. };
  40. /* package */static class B0 {
  41. };
  42. final static class B4 {
  43. }
  44. /* package */class C0 {
  45. }
  46. public class C1 {
  47. }
  48. private class C2 {
  49. }
  50. protected class C3 {
  51. }
  52. final class C4 {
  53. }
  54. abstract class C5 {
  55. }
  56. synchronized void sync1() {
  57. }
  58. /**
  59. * seams that dx translate this method to
  60. *
  61. * <pre>
  62. * void sync2() {
  63. * synchronized (this) {
  64. * new Object();
  65. * }
  66. * }
  67. * </pre>
  68. */
  69. synchronized void sync2() {
  70. new Object();
  71. }
  72. void a() {
  73. new Object() {
  74. Object o = new Object() {
  75. };
  76. class AX {
  77. }
  78. };
  79. }
  80. Object o = new Object() {
  81. };
  82. static interface AStaticInterface {
  83. }
  84. }