Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #19586

Re: Java return intellityping?

Received by 10.66.81.98 with SMTP id z2mr13590730pax.19.1351793653518; Thu, 01 Nov 2012 11:14:13 -0700 (PDT)
Received by 10.68.248.102 with SMTP id yl6mr4377715pbc.12.1351793653503; Thu, 01 Nov 2012 11:14:13 -0700 (PDT)
Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.linkpendium.com!news.linkpendium.com!news.snarked.org!newsfeed.news.ucla.edu!usenet.stanford.edu!kt20no28112865pbb.1!news-out.google.com!s9ni74152pbb.0!nntp.google.com!kt20no28112863pbb.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.java.programmer
Date Thu, 1 Nov 2012 11:14:13 -0700 (PDT)
In-Reply-To <4c12f491-2b3f-421b-b420-60d4220237d1@googlegroups.com>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=69.28.149.29; posting-account=CP-lKQoAAAAGtB5diOuGlDQk0jIwmH0T
NNTP-Posting-Host 69.28.149.29
References <4c12f491-2b3f-421b-b420-60d4220237d1@googlegroups.com>
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <ddb5a116-e208-4298-a1c1-b53d0ba2073c@googlegroups.com> (permalink)
Subject Re: Java return intellityping?
From Lew <lewbloch@gmail.com>
Injection-Date Thu, 01 Nov 2012 18:14:13 +0000
Content-Type text/plain; charset=ISO-8859-1
Xref csiph.com comp.lang.java.programmer:19586

Show key headers only | View raw


bob smith wrote:
> You know how there are all kinds of typing shortcuts nowadays?
> 
> Let's say there's code like this:
> 
> m_socket.getOutputStream();

You should not violate the Java Coding Conventions like this.

> Is there some general way to get your editor (i.e. Eclipse) to create a variable of the correct type and

"General" and "i.e." are not consistent.

It looks like Eclipse Preferences / Java / Editor / Templates is the way to go. 
Check your Eclipse documentation.

> assign it like so:
> OutputStream outputStream = m_socket.getOutputStream();
> 
> I feel like this could save a lot of work.

http://www.oracle.com/technetwork/java/codeconv-138413.html

-- 
Lew

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Java return intellityping? bob smith <bob@coolfone.comze.com> - 2012-11-01 10:39 -0700
  Re: Java return intellityping? Lew <lewbloch@gmail.com> - 2012-11-01 11:14 -0700
  Re: Java return intellityping? Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2012-11-01 19:07 +0000
  Re: Java return intellityping? Robert Klemme <shortcutter@googlemail.com> - 2012-11-01 23:33 +0100
  Re: Java return intellityping? Jim Janney <jjanney@shell.xmission.com> - 2012-11-02 08:49 -0600
  Re: Java return intellityping? Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-11-02 09:17 -0700
  Re: Java return intellityping? Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2012-11-02 23:00 +0100
    Re: Java return intellityping? Lew <lewbloch@gmail.com> - 2012-11-03 11:58 -0700
      Re: Java return intellityping? Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2012-11-04 17:39 +0100
        Re: Java return intellityping? Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-11-04 09:47 -0800
          Re: Java return intellityping? Robert Klemme <shortcutter@googlemail.com> - 2012-11-05 08:07 +0100
          Re: Java return intellityping? Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2012-11-05 23:52 +0100

csiph-web