[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Help] Re: Bug#966878: figtree: FTBFS: [javac] /<<PKGBUILDDIR>>/src/figtree/application/JSONTreeExporter.java:56: error: JSONTreeExporter is not abstract and does not override abstract method close() in TreeExporter



Uploaded.  Thanks a lot, Andreas.

On Mon, Aug 03, 2020 at 01:29:28PM +0100, Sudip Mukherjee wrote:
> Hi Andreas,
> 
> On Mon, Aug 3, 2020 at 10:25 AM Andreas Tille <andreas@an3as.eu> wrote:
> >
> > Control: tags -1 help
> >
> > Hi Java team
> >
> > I admit I have no idea how to tackle this.  Any help would be really
> > appreciated.
> 
> The attached patch should fix the FTBFS you have.
> 
> 
> -- 
> Regards
> Sudip

> Description: Fix FTBFS
>  The recent update of jebl2 removed the 'IOException' and has also added
>  close() which needs to be overriden.
> 
> Author: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
> Bug-Debian: https://bugs.debian.org/966878
> Forwarded: no
> 
> ---
> 
> --- figtree-1.4.4.orig/src/figtree/application/JSONTreeExporter.java
> +++ figtree-1.4.4/src/figtree/application/JSONTreeExporter.java
> @@ -80,13 +80,13 @@ public class JSONTreeExporter implements
>       * @throws java.io.IOException
>       */
>      @Override
> -    public void exportTree(Tree tree) throws IOException {
> +    public void exportTree(Tree tree) {
>          java.util.List<Tree> trees = new ArrayList<Tree>();
>          trees.add(tree);
>          exportTrees(trees);
>      }
>  
> -    private void writeTrees(Collection<? extends Tree> trees) throws IOException {
> +    private void writeTrees(Collection<? extends Tree> trees) {
>          int indent = 0;
>          int treeCount = 0;
>  
> @@ -178,10 +178,15 @@ public class JSONTreeExporter implements
>      }
>  
>      @Override
> -    public void exportTrees(Collection<? extends Tree> trees) throws IOException {
> +    public void exportTrees(Collection<? extends Tree> trees) {
>          writeTrees(trees);
>      }
>  
> +    @Override
> +    public void close() {
> +        close();
> +    }
> +
>      final private String nameRegex = "^(\\w|-)+$";
>  
>  


-- 
http://fam-tille.de


Reply to: