I have a hobby opne source Java project hosted at google code (linkset).
May I use a prefix "com.google.code.linkset" as a package name for this project?
P.S. I dont own "org.linkset" domain :( but i like the name :)
Generally we android developer having practice to decide package name based on the domain name of a particular company. For example: Domain name: sun.com => Root package name something like : com. sun.
A source folder with a package prefix is displayed in the Project View like so: If src has a package prefix org. example. application , IntelliJ IDEA treats that directory as src/org/example/application . (So, the package prefix is actually a directory prefix but is expressed in terms of the .
com => domain. something => company name. something => Main package name.
Naming Conventions Package names are written in all lower case to avoid conflict with the names of classes or interfaces. Companies use their reversed Internet domain name to begin their package names—for example, com. example. mypackage for a package named mypackage created by a programmer at example.com .
the name of your packages does not have to reflect the domain it's hosted at.
I think using com.google prefix will mislead your users into thinking the code was developed at google. don't do it unless you want to handle the backfire from your users when they realize it's not.
Since it would be misleading as Omry already mentioned, why not use org.lbownik.util.linkset
?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With