diff options
author | kmb <kmb@google.com> | 2018-03-29 15:51:32 -0700 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-03-29 15:53:16 -0700 |
commit | 5f911199c250e77a832be2e4f69017c69d446273 (patch) | |
tree | fab43c8ac895eba448dde187c0c8cebde4dc39dd /src/tools/singlejar/output_jar.h | |
parent | b802d86eda023466511237ebe3a393f25bb23b64 (diff) |
add singlejar variant to bazel that includes Android desugar dependency checking
PiperOrigin-RevId: 190999682
Diffstat (limited to 'src/tools/singlejar/output_jar.h')
-rw-r--r-- | src/tools/singlejar/output_jar.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tools/singlejar/output_jar.h b/src/tools/singlejar/output_jar.h index 0ad74c1ac2..ae26187792 100644 --- a/src/tools/singlejar/output_jar.h +++ b/src/tools/singlejar/output_jar.h @@ -45,6 +45,10 @@ class OutputJar { const std::string *input_jar_aux_label); // Return jar path. const char *path() const { return options_->output_jar.c_str(); } + // True if an entry with given name have not been added to this archive. + bool NewEntry(const std::string& entry_name) { + return known_members_.count(entry_name) == 0; + } protected: // The purpose of these two tiny utility methods is to avoid creating a @@ -59,10 +63,6 @@ class OutputJar { const size_t n_tail = strlen(tail); return n >= n_tail && !strncmp(str + n - n_tail, tail, n_tail); } - // True if an entry with given name have not been added to this archive. - bool NewEntry(const std::string& entry_name) { - return known_members_.count(entry_name) == 0; - } private: // Open output jar. |