You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
String .getBytes() uses the JVM default which depends on the machine/OS - UTF-8 on many machines but Windows OS machines can have region specific defaults.
why not just use the string from the readLine instead of converting it to bytes in a way that can differ based on the JVM setup and then randomly taking these bytes that can be any char encoding depending on the JVM and then pretending that they are UTF-8 - when this is not guaranteed. You already have the string - why mess with it?
I counted at least 4 other places with the same while loop. Wouldn't it be better to have a shared method for this?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I spotted some issues when reviewing the v2.2.5 RC4.
This is an example in your code
ozhera/ozhera-prometheus-agent/ozhera-prometheus-agent-common/src/main/java/org/apache/ozhera/prometheus/agent/util/Http.java
Lines 55 to 57 in 66402b2
I don't understand what this achieves.
Beta Was this translation helpful? Give feedback.
All reactions