ArneBab/plugin-WoT-staging — comment on commit 017fc258fc4f811e9ad6b75a0bde41d03928deac
File: src/plugins/WebOfTrust/util/RandomName.java line 5420
By xor-freenet:

In general it is wise to try to avoid copy-pasting code at all cost. Code-duplication = duplication of possible errors, maintenance cost, etc.
Instead, add a boolean parameter for whether to allow spaces or not. If you want two functions for ease of use, write two interface functions which are visible and one core-function which takes the boolean