< prev index next >
src/java.desktop/share/classes/javax/swing/text/html/FrameView.java
Print this page
@@ -67,11 +67,11 @@
Element elem = getElement();
AttributeSet attributes = elem.getAttributes();
String srcAtt = (String)attributes.getAttribute(HTML.Attribute.SRC);
- if ((srcAtt != null) && (!srcAtt.equals(""))) {
+ if (srcAtt != null && !srcAtt.isEmpty()) {
try {
URL base = ((HTMLDocument)elem.getDocument()).getBase();
src = new URL(base, srcAtt);
htmlPane = new FrameEditorPane();
htmlPane.addHyperlinkListener(this);
< prev index next >