You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by GitBox <gi...@apache.org> on 2019/11/06 21:09:44 UTC

[GitHub] [accumulo] keith-turner opened a new pull request #1412: Stopped calling getBytes() on strings passed to Value

keith-turner opened a new pull request #1412: Stopped calling getBytes() on strings passed to Value
URL: https://github.com/apache/accumulo/pull/1412
 
 
   Recently while fixing an IT I noticed it was doing new
   Value(X.getBytes()).  The Value constructor has accepted strings for a
   while.  I automatically fixed this with the following commands.
   
   ```bash
   find . -name "*.java" | xargs sed -r -i 's/new\s+Value\(\((.*)\)[.]getBytes\(\)\)/new Value\(\1\)/'
   
   find . -name "*.java" | xargs sed -r -i 's/(new\s+Value\(.*)[.]getBytes\(\)\)/\1\)/'
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services