From 762d6ae2622ef183f6b67d4205f684686681d1dc Mon Sep 17 00:00:00 2001 From: "ashuk%eng.sun.com" Date: Tue, 8 May 2001 16:58:36 +0000 Subject: [PATCH] Bug=61977 author=ashuk Fix changes CurrentPageImpl.java and fixes leading "null" from getPageSource and getPageSourceBytes --- .../mozilla/webclient/wrapper_native/CurrentPageImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/java/webclient/classes_spec/org/mozilla/webclient/wrapper_native/CurrentPageImpl.java b/java/webclient/classes_spec/org/mozilla/webclient/wrapper_native/CurrentPageImpl.java index f091201579c..57dca62719b 100644 --- a/java/webclient/classes_spec/org/mozilla/webclient/wrapper_native/CurrentPageImpl.java +++ b/java/webclient/classes_spec/org/mozilla/webclient/wrapper_native/CurrentPageImpl.java @@ -152,7 +152,7 @@ public Properties getPageInfo() public String getSource() { myFactory.throwExceptionIfNotInitialized(); - String HTMLContent = null; + String HTMLContent; String currURL = getCurrentURL(); System.out.println("\nThe Current URL is -- " + currURL); try { @@ -185,7 +185,7 @@ public byte [] getSourceBytes() myFactory.throwExceptionIfNotInitialized(); - String HTMLContent = null; + String HTMLContent; String currURL = getCurrentURL(); System.out.println("\nThe Current URL is -- " + currURL); try { @@ -268,7 +268,7 @@ public static void main(String [] args) Assert.setEnabled(true); Log.setApplicationName("CurrentPageImpl"); Log.setApplicationVersion("0.0"); - Log.setApplicationVersionDate("$Id: CurrentPageImpl.java,v 1.12 2001-05-08 04:50:29 edburns%acm.org Exp $"); + Log.setApplicationVersionDate("$Id: CurrentPageImpl.java,v 1.13 2001-05-08 16:58:36 ashuk%eng.sun.com Exp $"); }