Clover coverage report - brownies library - 1.0-beta-1 Coverage timestamp: 月 8 16 2004 17:14:42 GMT+09:00 FRAMES NO FRAMES |
file stats: | LOC: | 38 |  | Methods: | 4
| NCLOC: | 20 |  | Classes: | 1
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover
Source file | Conditionals | Statements | Methods | TOTAL
Wrapper.java | 0% | 28.6% | 25% | 23.1% |

1 |  |
     /*
2 |  |
      * Joey and its relative products are published under the terms
3 |  |
      * of the Apache Software License.
4 |  |
      */
5 |  |
     /*
6 |  |
      * Created on 2003/12/11
7 |  |
      */
8 |  |
     package org.asyrinx.brownie.core.util;
9 |  |
10 |  |
     /**
11 |  |
      * @author akima
12 |  |
      */
13 |  |
     public class Wrapper {
14 |  |
15 |  |
         protected final Object wrapped;
16 |  |
17 | 4 |
         public Wrapper(final Object wrapped) {
18 | 4 |
             super();
19 | 4 |
             this.wrapped = wrapped;
20 |  |
         }
21 |  |
22 | 0 |
         public final Object getWrapped() {
23 | 0 |
             return this.wrapped;
24 |  |
         }
25 |  |
26 | 0 |
         public final Object getCore() {
27 | 0 |
             return getCoreWrapped(this.wrapped);
28 |  |
         }
29 |  |
30 | 0 |
         public static Object getCoreWrapped(Object obj) {
31 | 0 |
             if (obj instanceof Wrapper) {
32 | 0 |
                 return getCoreWrapped(((Wrapper) obj).getWrapped());
33 |  |
             } else {
34 | 0 |
                 return obj;
35 |  |
             }
36 |  |
         }
37 |  |
38 |  |
     }