< prev index next >
src/java.desktop/share/classes/javax/swing/text/html/parser/Entity.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 1998, 2008, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 1998, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 53,71 ****
public int type;
/**
* The char array of data.
*/
! public char data[];
/**
* Creates an entity.
* @param name the name of the entity
* @param type the type of the entity
* @param data the char array of data
*/
! public Entity(String name, int type, char data[]) {
this.name = name;
this.type = type;
this.data = data;
}
--- 53,71 ----
public int type;
/**
* The char array of data.
*/
! public char[] data;
/**
* Creates an entity.
* @param name the name of the entity
* @param type the type of the entity
* @param data the char array of data
*/
! public Entity(String name, int type, char[] data) {
this.name = name;
this.type = type;
this.data = data;
}
*** 103,113 ****
/**
* Returns the <code>data</code>.
* @return the <code>data</code>
*/
! public char getData()[] {
return data;
}
/**
* Returns the data as a <code>String</code>.
--- 103,113 ----
/**
* Returns the <code>data</code>.
* @return the <code>data</code>
*/
! public char[] getData() {
return data;
}
/**
* Returns the data as a <code>String</code>.
< prev index next >