src/jdk/nashorn/internal/runtime/regexp/joni/encoding/ObjPtr.java

Mon, 03 Nov 2014 11:47:41 +0100

author
lagergren
date
Mon, 03 Nov 2014 11:47:41 +0100
changeset 1082
e1e27c4262be
parent 962
ac62e33a99b0
child 1205
4112748288bb
permissions
-rw-r--r--

8060204: Fix warnings in Joni and tests
Reviewed-by: hannesw, sundar, attila

hannesw@115 1 /*
hannesw@115 2 * Permission is hereby granted, free of charge, to any person obtaining a copy of
hannesw@115 3 * this software and associated documentation files (the "Software"), to deal in
hannesw@115 4 * the Software without restriction, including without limitation the rights to
hannesw@115 5 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
hannesw@115 6 * of the Software, and to permit persons to whom the Software is furnished to do
hannesw@115 7 * so, subject to the following conditions:
hannesw@115 8 *
hannesw@115 9 * The above copyright notice and this permission notice shall be included in all
hannesw@115 10 * copies or substantial portions of the Software.
hannesw@115 11 *
hannesw@115 12 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
hannesw@115 13 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
hannesw@115 14 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
hannesw@115 15 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
hannesw@115 16 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
hannesw@115 17 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
hannesw@115 18 * SOFTWARE.
hannesw@115 19 */
hannesw@115 20 package jdk.nashorn.internal.runtime.regexp.joni.encoding;
hannesw@115 21
lagergren@1082 22 @SuppressWarnings("javadoc")
hannesw@115 23 public final class ObjPtr<T> {
hannesw@115 24 public ObjPtr() {
hannesw@115 25 this(null);
hannesw@115 26 }
hannesw@115 27
attila@962 28 public ObjPtr(final T p) {
hannesw@115 29 this.p = p;
hannesw@115 30 }
hannesw@115 31
hannesw@115 32 public T p;
hannesw@115 33
hannesw@115 34 }
hannesw@115 35

mercurial