1 /* |
1 /* |
2 * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
172 |
175 |
173 if(opt==null) |
176 if(opt==null) |
174 return null; |
177 return null; |
175 |
178 |
176 Accessor<B,V> acc = instanciate(opt); |
179 Accessor<B,V> acc = instanciate(opt); |
177 if(acc!=null) |
180 if (acc!=null) { |
178 logger.log(Level.FINE,"Using optimized Accessor for "+field); |
181 if (logger.isLoggable(Level.FINE)) { |
|
182 logger.log(Level.FINE, "Using optimized Accessor for {0}", field); |
|
183 } |
|
184 } |
179 return acc; |
185 return acc; |
180 } |
186 } |
181 |
187 |
182 private static <B,V> Accessor<B,V> instanciate(Class opt) { |
188 private static <B,V> Accessor<B,V> instanciate(Class opt) { |
183 try { |
189 try { |