]> source.dussan.org Git - jgit.git/commit
Config: Add helper method to check for empty value 75/143575/4
authorDavid Pursehouse <david.pursehouse@gmail.com>
Sat, 8 Jun 2019 06:01:44 +0000 (15:01 +0900)
committerDavid Pursehouse <david.pursehouse@gmail.com>
Tue, 11 Jun 2019 01:51:40 +0000 (10:51 +0900)
commitfd8d779b5eec614d2cb5a611f2e36f522b34a439
treeab49a2697885057730a721e69c7a60a5953ffccc
parent8bd0ba0f150feb485295f8c3890648eddf05fa41
Config: Add helper method to check for empty value

Rename MAGIC_EMPTY_VALUE to MISSING_ENTRY, make it private, and add
a helper method to check if a given string is that value.

This avoids that callers trigger the "reference equality" warning
from Error Prone.

Change-Id: Idc76f78c0cf1828aa48d02ee33911a4b5df50355
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
org.eclipse.jgit/src/org/eclipse/jgit/lib/Config.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/DefaultTypedConfigGetter.java