Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Cast a Run object to an AbstractBuild<?,?> Object
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Stephen Connolly  
View profile   Translate to Translated (View Original)
 More options Jun 27 2012, 7:51 am
From: Stephen Connolly <stephen.alan.conno...@gmail.com>
Date: Wed, 27 Jun 2012 12:51:15 +0100
Local: Wed, Jun 27 2012 7:51 am
Subject: Re: Cast a Run object to an AbstractBuild<?,?> Object
If the run is an abstractbuild instance (and there is the possibility
that it may not) then you can cast away

i.e.

if (run instanceof AbstractBuild)
list.add(AbstractBuild.class.cast(run)); else // help I am stuck

and you really are stuck at that point, if you have a project type
which produces Run instances that are not abstract builds.... for
99.999% of users that will be an edge case, but you *should* but some
error handling into your code to handle/warn the user in such edge
cases.

-Stephen

On 27 June 2012 10:43, MaxiTrompe <mtromp...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »