From: Andrew Cagney <cagney@redhat.com>
To: frysk@sourceware.org
Subject: Config using File
Date: Tue, 06 Feb 2007 21:09:00 -0000 [thread overview]
Message-ID: <45C8EE81.6010500@redhat.com> (raw)
FYI,
In Java the Right Way to handle anything involving a file or path is to
create a File object and manipulate that. For instance, instead of:
Config.getBinDir () + "/" + "fstack"
the coder should write:
new File (Config.getBinDir (), "fstack");
which will take care of all the "/" portability mess.
I've switched most of the Config directory paths to return File, instead
of String. Two, namely getGladeDir() and getImagesDir() were not
switched. They are passed onto Java-GNOME and that currently takes a
String. Partially converting them turned into a rats nest :-)
Andrew
reply other threads:[~2007-02-06 21:09 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45C8EE81.6010500@redhat.com \
--to=cagney@redhat.com \
--cc=frysk@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).