From e5a6290ac907ff912216f19e319247ef1d393e0b Mon Sep 17 00:00:00 2001 From: Matthias Sohn Date: Sat, 4 Apr 2015 00:53:47 +0200 Subject: [PATCH 1/2] Replace call to deprecated release() by close() in PackParser Change-Id: Ic2db051130059cce89486f55ecca32a7ce6715fd Signed-off-by: Matthias Sohn --- org.eclipse.jgit/src/org/eclipse/jgit/transport/PackParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/PackParser.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/PackParser.java index 5b54891cd..de52a4bb3 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/PackParser.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/PackParser.java @@ -529,7 +529,7 @@ public abstract class PackParser { } finally { try { if (readCurs != null) - readCurs.release(); + readCurs.close(); } finally { readCurs = null; } From 8d41c783c0f07ffb2abec85ce05ad963387c5855 Mon Sep 17 00:00:00 2001 From: Matthias Sohn Date: Sat, 4 Apr 2015 00:54:24 +0200 Subject: [PATCH 2/2] Silence non-externalized string warning in PackParser Change-Id: I1a4181fc292c42157c69479f71c7674b2e00d2ce Signed-off-by: Matthias Sohn --- org.eclipse.jgit/src/org/eclipse/jgit/transport/PackParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/PackParser.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/PackParser.java index de52a4bb3..04abe2232 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/PackParser.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/PackParser.java @@ -812,7 +812,7 @@ public abstract class PackParser { for (final DeltaChain base : missing) { if (base.head != null) - throw new MissingObjectException(base, "delta base"); + throw new MissingObjectException(base, "delta base"); //$NON-NLS-1$ } onEndThinPack();