From eb8be973c7982fe3ece0aeaeca379c3b3cdced0c Mon Sep 17 00:00:00 2001 From: Bjorn Bringert Date: Tue, 12 Oct 2010 16:24:55 +0100 Subject: Make fields in WebAddress private, add getters/setters Change-Id: Iceaf3d648289344e53c37273f7324a79676fbef7 --- core/java/android/webkit/URLUtil.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/java/android/webkit/URLUtil.java') diff --git a/core/java/android/webkit/URLUtil.java b/core/java/android/webkit/URLUtil.java index c1319e5..542dd21 100644 --- a/core/java/android/webkit/URLUtil.java +++ b/core/java/android/webkit/URLUtil.java @@ -74,9 +74,9 @@ public final class URLUtil { } // Check host - if (webAddress.mHost.indexOf('.') == -1) { + if (webAddress.getHost().indexOf('.') == -1) { // no dot: user probably entered a bare domain. try .com - webAddress.mHost = "www." + webAddress.mHost + ".com"; + webAddress.setHost("www." + webAddress.getHost() + ".com"); } return webAddress.toString(); } -- cgit v1.1