< prev index next >

src/java.xml/share/classes/com/sun/org/apache/bcel/internal/classfile/ConstantLong.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. */ /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. --- 1,7 ---- /* ! * Copyright (c) 2017, 2020 Oracle and/or its affiliates. All rights reserved. */ /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership.
*** 28,39 **** /** * This class is derived from the abstract {@link Constant} * and represents a reference to a long object. * - * @version $Id$ * @see Constant */ public final class ConstantLong extends Constant implements ConstantObject { private long bytes; --- 28,39 ---- /** * This class is derived from the abstract {@link Constant} * and represents a reference to a long object. * * @see Constant + * @LastModified: Jan 2020 */ public final class ConstantLong extends Constant implements ConstantObject { private long bytes;
*** 84,126 **** * * @param file Output file stream * @throws IOException */ @Override ! public final void dump( final DataOutputStream file ) throws IOException { file.writeByte(super.getTag()); file.writeLong(bytes); } /** * @return data, i.e., 8 bytes. */ ! public final long getBytes() { return bytes; } /** * @param bytes the raw bytes that represent this long */ ! public final void setBytes( final long bytes ) { this.bytes = bytes; } /** * @return String representation. */ @Override ! public final String toString() { return super.toString() + "(bytes = " + bytes + ")"; } /** @return Long object */ @Override public Object getConstantValue( final ConstantPool cp ) { ! return Long.valueOf(bytes); } } --- 84,126 ---- * * @param file Output file stream * @throws IOException */ @Override ! public void dump( final DataOutputStream file ) throws IOException { file.writeByte(super.getTag()); file.writeLong(bytes); } /** * @return data, i.e., 8 bytes. */ ! public long getBytes() { return bytes; } /** * @param bytes the raw bytes that represent this long */ ! public void setBytes( final long bytes ) { this.bytes = bytes; } /** * @return String representation. */ @Override ! public String toString() { return super.toString() + "(bytes = " + bytes + ")"; } /** @return Long object */ @Override public Object getConstantValue( final ConstantPool cp ) { ! return bytes; } }
< prev index next >