- Minor tweak to javadoc ("id's" => "IDs")
- When an unknown element id is specified, it has always thrown NoSuchElementException(); my change is to include the id as the exception message
Review by: knorton (postmortem)
git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@1066 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/src/com/google/gwt/user/client/ui/HTMLPanel.java b/user/src/com/google/gwt/user/client/ui/HTMLPanel.java
index b8fa132..0c907e9 100644
--- a/user/src/com/google/gwt/user/client/ui/HTMLPanel.java
+++ b/user/src/com/google/gwt/user/client/ui/HTMLPanel.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2006 Google Inc.
+ * Copyright 2007 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
@@ -29,7 +29,7 @@
private static int sUid;
/**
- * A helper method for creating unique id's for elements within dynamically-
+ * A helper method for creating unique IDs for elements within dynamically-
* generated HTML. This is important because no two elements in a document
* should have the same id.
*
@@ -60,7 +60,7 @@
public void add(Widget widget, String id) {
Element elem = getElementById(getElement(), id);
if (elem == null) {
- throw new NoSuchElementException();
+ throw new NoSuchElementException(id);
}
super.add(widget, elem);