| <?xml version="1.0" encoding="UTF-8"?> |
| <issues format="6" by="lint 8.5.0-dev" type="baseline" client="" dependencies="true" name="" variant="all" version="8.5.0-dev"> |
| |
| <issue |
| id="DefaultLocale" |
| message="Implicitly using the default locale is a common source of bugs: Use `String.format(Locale, ...)` instead" |
| errorLine1=" myThreads.put(threadId, String.format("Thread id: %1$d", threadId));" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/com/android/tools/profilers/cpu/art/ArtTraceHandler.java" |
| line="72" |
| column="31"/> |
| </issue> |
| |
| <issue |
| id="DefaultLocale" |
| message="Implicitly using the default locale is a common source of bugs: Use `String.format(Locale, ...)` instead" |
| errorLine1=" LOGGER.warn(String.format("Parsing of capture %d was not properly cancelled.", id));" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/com/android/tools/profilers/cpu/CpuCaptureParser.java" |
| line="156" |
| column="21"/> |
| </issue> |
| |
| <issue |
| id="DefaultLocale" |
| message="Implicitly using the default locale is a common source of bugs: Use `String.format(Locale, ...)` instead" |
| errorLine1=" File trace = FileUtil.createTempFile(String.format("cpu_trace_%d", info.getTraceId()), ".trace", true);" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/com/android/tools/profilers/cpu/CpuProfiler.java" |
| line="207" |
| column="46"/> |
| </issue> |
| |
| <issue |
| id="DefaultLocale" |
| message="Implicitly using the default locale is a common source of bugs: Use `String.format(Locale, ...)` instead" |
| errorLine1=" return String.format(OBJECT_NAME_FORMATTER, myReferencedObject.getValueText(), myObjectTag);" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/com/android/tools/profilers/memory/adapters/JniReferenceInstanceObject.java" |
| line="292" |
| column="14"/> |
| </issue> |
| |
| <issue |
| id="DefaultLocale" |
| message="Implicitly using the default locale is a common source of bugs: Use `String.format(Locale, ...)` instead" |
| errorLine1=" super(() -> String.format("Click to see next %d..."," |
| errorLine2=" ^"> |
| <location |
| file="src/com/android/tools/profilers/memory/LazyMemoryObjectTreeNode.java" |
| line="166" |
| column="19"/> |
| </issue> |
| |
| <issue |
| id="DefaultLocale" |
| message="Implicitly using the default locale is a common source of bugs: Use `toLowerCase(Locale)` instead. For strings meant to be internal use `Locale.ROOT`, otherwise `Locale.getDefault()`." |
| errorLine1=" displayString += String.format(" - %s", data.getState().toString().toLowerCase());" |
| errorLine2=" ~~~~~~~~~~~"> |
| <location |
| file="src/com/android/tools/profilers/event/LifecycleEventDataSeries.java" |
| line="98" |
| column="80"/> |
| </issue> |
| |
| <issue |
| id="DefaultLocale" |
| message="Implicitly using the default locale is a common source of bugs: Use `toLowerCase(Locale)` instead. For strings meant to be internal use `Locale.ROOT`, otherwise `Locale.getDefault()`." |
| errorLine1=" displayString += String.format(" - %s", nextEvent.getView().getState().toString().toLowerCase());" |
| errorLine2=" ~~~~~~~~~~~"> |
| <location |
| file="src/com/android/tools/profilers/event/LifecycleEventDataSeries.java" |
| line="116" |
| column="97"/> |
| </issue> |
| |
| <issue |
| id="DefaultLocale" |
| message="Implicitly using the default locale is a common source of bugs: Use `String.format(Locale, ...)` instead" |
| errorLine1=" getLogger().error(String.format("Encountered unknown tag (%d) when attempting to parse perfetto capture.", tag));" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/com/android/tools/profilers/cpu/systemtrace/PerfettoProducer.java" |
| line="110" |
| column="27"/> |
| </issue> |
| |
| <issue |
| id="DefaultLocale" |
| message="Implicitly using the default locale is a common source of bugs: Use `String.format(Locale, ...)` instead" |
| errorLine1=" String.format("tracing_mark_write: trace_event_clock_sync: parent_ts=%.6f"," |
| errorLine2=" ^"> |
| <location |
| file="src/com/android/tools/profilers/cpu/systemtrace/PerfettoProducer.java" |
| line="257" |
| column="35"/> |
| </issue> |
| |
| <issue |
| id="DefaultLocale" |
| message="Implicitly using the default locale is a common source of bugs: Use `String.format(Locale, ...)` instead" |
| errorLine1=" return String.format("sched_switch: prev_comm=%s prev_pid=%d prev_prio=%d prev_state=%s ==> next_comm=%s next_pid=%d next_prio=%d"," |
| errorLine2=" ^"> |
| <location |
| file="src/com/android/tools/profilers/cpu/systemtrace/PerfettoProducer.java" |
| line="299" |
| column="14"/> |
| </issue> |
| |
| <issue |
| id="DefaultLocale" |
| message="Implicitly using the default locale is a common source of bugs: Use `String.format(Locale, ...)` instead" |
| errorLine1=" return String.format("sched_cpu_hotplug: cpu %d %s error=%d", sched.getAffectedCpu(), sched.getStatus() == 0 ? "offline" : "online"," |
| errorLine2=" ^"> |
| <location |
| file="src/com/android/tools/profilers/cpu/systemtrace/PerfettoProducer.java" |
| line="305" |
| column="14"/> |
| </issue> |
| |
| <issue |
| id="DefaultLocale" |
| message="Implicitly using the default locale is a common source of bugs: Use `String.format(Locale, ...)` instead" |
| errorLine1=" return String.format("sched_blocked_reason: pid=%d iowait=%d caller=%s", sched.getPid(), sched.getIoWait(), sched.getCaller());" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/com/android/tools/profilers/cpu/systemtrace/PerfettoProducer.java" |
| line="310" |
| column="14"/> |
| </issue> |
| |
| <issue |
| id="DefaultLocale" |
| message="Implicitly using the default locale is a common source of bugs: Use `String.format(Locale, ...)` instead" |
| errorLine1=" return String" |
| errorLine2=" ^"> |
| <location |
| file="src/com/android/tools/profilers/cpu/systemtrace/PerfettoProducer.java" |
| line="314" |
| column="14"/> |
| </issue> |
| |
| <issue |
| id="DefaultLocale" |
| message="Implicitly using the default locale is a common source of bugs: Use `String.format(Locale, ...)` instead" |
| errorLine1=" return String" |
| errorLine2=" ^"> |
| <location |
| file="src/com/android/tools/profilers/cpu/systemtrace/PerfettoProducer.java" |
| line="320" |
| column="14"/> |
| </issue> |
| |
| <issue |
| id="DefaultLocale" |
| message="Implicitly using the default locale is a common source of bugs: Use `String.format(Locale, ...)` instead" |
| errorLine1=" String timeSeconds = String.format("%.6f", nanosToSeconds(timestampNs));" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/com/android/tools/profilers/cpu/systemtrace/PerfettoProducer.java" |
| line="380" |
| column="28"/> |
| </issue> |
| |
| <issue |
| id="DefaultLocale" |
| message="Implicitly using the default locale is a common source of bugs: Use `String.format(Locale, ...)` instead" |
| errorLine1=" tgid = String.format("%5d", myTidToTgid.get(pid));" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/com/android/tools/profilers/cpu/systemtrace/PerfettoProducer.java" |
| line="383" |
| column="16"/> |
| </issue> |
| |
| <issue |
| id="DefaultLocale" |
| message="Implicitly using the default locale is a common source of bugs: Use `String.format(Locale, ...)` instead" |
| errorLine1=" return String.format("%s-%d (%s) [%3d] d..3 %s: ", name, pid, tgid, cpu, timeSeconds);" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/com/android/tools/profilers/cpu/systemtrace/PerfettoProducer.java" |
| line="385" |
| column="14"/> |
| </issue> |
| |
| <issue |
| id="DefaultLocale" |
| message="Implicitly using the default locale is a common source of bugs: Use `String.format(Locale, ...)` instead" |
| errorLine1=" String.format("%s%ctrace-%d", FileUtil.getTempDirectory(), File.separatorChar, System.currentTimeMillis()), ".trace", true);" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/com/android/tools/profilers/cpu/simpleperf/SimpleperfSampleReporter.java" |
| line="77" |
| column="9"/> |
| </issue> |
| |
| <issue |
| id="DefaultLocale" |
| message="Implicitly using the default locale is a common source of bugs: Use `String.format(Locale, ...)` instead" |
| errorLine1=" File file = FileUtil.createTempFile(String.format("cpu_trace_%d", System.currentTimeMillis()), ".trace", true);" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/com/android/tools/profilers/cpu/simpleperf/SimpleperfSampleReporter.java" |
| line="144" |
| column="41"/> |
| </issue> |
| |
| <issue |
| id="DefaultLocale" |
| message="Implicitly using the default locale is a common source of bugs: Use `String.format(Locale, ...)` instead" |
| errorLine1=" getLog().warn(String.format("Warning: No samples read for thread %s (%d)", myThreads.get(threadId), threadId));" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/com/android/tools/profilers/cpu/simpleperf/SimpleperfTraceParser.java" |
| line="388" |
| column="21"/> |
| </issue> |
| |
| </issues> |