]> source.dussan.org Git - gwtquery.git/commitdiff
Do not copy deprecated methods in lazy interfaces to avoid compiler warnings
authorManolo Carrasco <manolo@apache.org>
Mon, 14 Feb 2011 16:30:07 +0000 (16:30 +0000)
committerManolo Carrasco <manolo@apache.org>
Mon, 14 Feb 2011 16:30:07 +0000 (16:30 +0000)
extractInterface.pl
gwtquery-core/src/main/java/com/google/gwt/query/client/LazyGQuery.java

index e4dad07c13244091deb1bbd5d0dd58a1b41c44e3..c0510ee832df8a677ab6d2596dd630a6c1d6c12c 100644 (file)
@@ -23,7 +23,7 @@ $o =~ s/$iclass/$oclass/;
 my $c = 0;
 
 open(F, $i) || die $!;
-my ($in, $com, $ingq, $inclass, $inh, $head, $body, $inmeth, $meth) = (0, "", 0, 0, 1, "", "", 0, "");
+my ($in, $com, $ingq, $inclass, $inh, $head, $body, $inmeth, $meth, $dep) = (0, "", 0, 0, 1, "", "", 0, "", 0);
 my ($a, $b) = (0,0);
 while(<F>) {
    s/\r+//g;
@@ -35,9 +35,12 @@ while(<F>) {
    if ($ingq && !$inclass) {
       $in = 1 if (/^\/\**\s*$/);
       $com = "" if (/^\/\**\s*$/);
+      $dep = 1 if (/^\s*\@Deprecated/);
       next if /static/;
       next if /$iclass\s*\(/;
       $inmeth = 1 if (!$inmeth && !$in && /(public .*?\(.*)\s*$/);
+      $dep = $inmeth = 0 if ($dep && $inmeth);
+      $dep = $in = 0 if ($dep && $in);
       $meth .= $_ if ($inmeth);
       if ($inmeth && /\{/) {
          $meth =~ s/final\s+//g;
index f3cbbca57ac95f57783cf706834d3c4513342b42..6a8599ba02e8d8ad5d9e80c35afd9549201df7c7 100644 (file)
@@ -251,16 +251,6 @@ public interface LazyGQuery<T> extends LazyBase<T>{
    */
   LazyGQuery<T> click(Function...f);
 
-  /**
-   * @deprecated use innerHeight()
-   */
-  int clientHeight();
-
-  /**
-   * @deprecated use innerWidth()
-   */
-  int clientWidth();
-
   /**
    * Clone matched DOM Elements and select the clones. This is useful for moving
    * copies of the elements to another location in the DOM.